GUICreate("标题", 227, 167)
$Button1 = GUICtrlCreateButton("第一", 8, 8, 100, 70, 0)
$Button2 = GUICtrlCreateButton("第二", 120, 8, 100, 70, 0)
$Button3 = GUICtrlCreateButton("第三", 8, 88, 100, 70, 0)
$Button4 = GUICtrlCreateButton("第四", 120, 88, 100, 70, 0)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case -3
Exit
Case $Button1
MsgBox(0,"1","第一")
Case $Button2
MsgBox(0,"1","第二")
Case $Button3
MsgBox(0,"1","第三")
Case $Button4
MsgBox(0,"1","第四")
EndSwitch
WEnd
|