求大神,做图片按钮效果时,图片老是闪烁个不停怎么破
做图片按钮效果时,图片老是闪烁个不停怎么破哇#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=$Pic1 Then
GUICtrlSetImage($Pic1,"\2.jpg")
Else
GUICtrlSetImage($Pic1,"\1.bmp")
EndIf
WEnd
#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 ###
$Pos = GUIGetCursorInfo($Form1)
If $Pos = $Pic1 Then
GUICtrlSetImage($Pic1, "\2.jpg")
Else
GUICtrlSetImage($Pic1, "\1.bmp")
EndIf
While 1
$nMsg = GUIGetMsg()
Local $a = GUIGetCursorInfo()
If $nMsg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
页:
[1]