本帖最后由 lxz 于 2010-4-23 06:57 编辑 #include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>
#include <StaticConstants.au3>
Local $gui, $background, $pic, $msg,$qqbutton
#Region ### START Koda GUI section ### Form=
$gui = GUICreate("Entermainment", 400, 400)
; background picture
$qqbutton = GUICtrlCreateButton("登陆", 80, 50, 90, 50)
$background = GUICtrlCreatePic("D:\background.jpg", 0, 0, 400, 400, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
MsgBox(0, "", "Dialog was closed")
Exit
Case $msg = $GUI_EVENT_MINIMIZE
MsgBox(0, "", "Dialog minimized", 2)
Case $msg = $qqbutton
MsgBox(0, "Default button clicked","sucess")
EndSelect
WEnd
|