2011-10-14签到,最近项目事情多,又想再找找工作~!~所以来的少了!
下面是ICO图片按钮,论坛源码区发过了,再这里也记录下吧~!~#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 200, 200, 192, 124)
$Icon1 = GUICtrlCreateIcon(@ScriptDir & "\1.ico", -1, 50, 50, 49, 41, BitOR($SS_NOTIFY,$WS_GROUP))
GUICtrlSetCursor(-1, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Icon1
GUICtrlSetState ( $Icon1, $GUI_HIDE)
Sleep(100)
GUICtrlSetState ( $Icon1, $GUI_Show)
MsgBox(0,"","OK")
EndSwitch
WEnd
|