感觉GUIGetCursorInfo()似有不妥,看下这样可否:#include <GUIButton.au3>
#include <GUIImageList.au3>
$hGUI = GUICreate("Test", 200, 100)
Local $hImg = _GUIImageList_Create(32, 32, 5, 3)
_GUIImageList_AddIcon($hImg, "Shell32.dll", 131, 1)
_GUIImageList_AddIcon($hImg, "Shell32.dll", 130, 1)
_GUIImageList_AddIcon($hImg, "Shell32.dll", 130, 1)
_GUIImageList_AddIcon($hImg, "Shell32.dll", 131, 1)
_GUIImageList_AddIcon($hImg, "Shell32.dll", 131, 1)
GUICtrlCreateButton("", 40, 20, 40, 40)
_GUICtrlButton_SetImageList(-1, $hImg)
GUISetState()
Do
Until guiGetMsg() = -3
|