做图片按钮效果时,图片老是闪烁个不停怎么破哇#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 615, 438, 192, 124)
$Pic1 = GUICtrlCreatePic("1.bmp", 88, 64, 433, 269)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Local $a = GUIGetCursorInfo()
If $nmsg = $GUI_EVENT_CLOSE Then ExitLoop
$Pos = GUIGetCursorInfo($Form1)
If $pos[4]=$Pic1 Then
GUICtrlSetImage($Pic1,"\2.jpg")
Else
GUICtrlSetImage($Pic1,"\1.bmp")
EndIf
WEnd
|