找回密码
 加入
搜索
查看: 1722|回复: 4

[系统综合] 请问_WinAPI_ShellExtractIcons在那个文件中的函数?

  [复制链接]
发表于 2013-1-7 08:33:03 | 显示全部楼层 |阅读模式
为什么我在新的版本内找不到此函数,望求各位好友大神告诉俺,谢谢!
发表于 2013-1-7 08:35:28 | 显示全部楼层
回复 1# jonyzhr


    F1能否帮助你??新版本是什么版本??哪下的??
发表于 2013-1-7 09:40:44 | 显示全部楼层
LZ要找的函数是不是
#Include <WinAPIEx.au3>
_WinAPI_ShellExtractIcon ( $sIcon, $iIndex, $iWidth, $iHeight )
发表于 2013-1-7 21:09:51 | 显示全部楼层
#Include <WinAPIEx.au3>

Opt('MustDeclareVars', 1)

Global Const $STM_SETIMAGE = 0x0172

Global $hForm, $Msg, $Button, $Icon, $hIcon, $Index = 0, $Total = _WinAPI_ExtractIconEx(@SystemDir & '\shell32.dll', -1, 0, 0, 0)

$hForm = GUICreate('MyGUI', 160, 160)
$Button = GUICtrlCreateButton('Next', 50, 130, 70, 23)
$Icon = GUICtrlCreateIcon(@SystemDir & '\shell32.dll', 0, 64, 54, 32, 32)
$hIcon = GUICtrlGetHandle(-1)
GUISetState()

While 1
  $Msg = GUIGetMsg()
  Switch $Msg
    Case -3
      ExitLoop
    Case $Button
      $Index += 1
      IF $Index > $Total - 1 Then
        $Index = 0
      EndIF
     _WinAPI_FreeIcon(_SendMessage($hIcon, $STM_SETIMAGE, 1, _WinAPI_ShellExtractIcon(@SystemDir & '\shell32.dll', $Index, 32, 32)))
  EndSwitch
WEnd
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-20 03:40 , Processed in 0.078931 second(s), 22 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表