请问_WinAPI_ShellExtractIcons在那个文件中的函数?
为什么我在新的版本内找不到此函数,望求各位好友大神告诉俺,谢谢! 回复 1# jonyzhrF1能否帮助你??新版本是什么版本??哪下的?? LZ要找的函数是不是
#Include <WinAPIEx.au3>
_WinAPI_ShellExtractIcon ( $sIcon, $iIndex, $iWidth, $iHeight ) #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
页:
[1]