表达的是什么意思呢?不大理解,只能猜了
#include <GUIConstantsEX.au3>
#include <array.au3>
$mainwindow = GUICreate('Hello , world', 200, 100)
GUICtrlCreateLabel('how are you?', 30, 10)
$okbutton = GUICtrlCreateButton('OK', 70, 50, 60)
$dummywindow = GUICreate('test', 200, 100)
$chlid_ok=GUICtrlCreateButton("chlid_ok",70,50,60)
GUISwitch($mainwindow)
GUISetState(@SW_HIDE,$dummywindow)
GUISetState(@SW_SHOW,$mainwindow)
While 1
$msg = GUIGetMsg(1)
Switch $msg[1]
Case $mainwindow
Select
Case $msg[0] = $okbutton
_ArrayDisplay($msg)
MsgBox(0, 'window', 'you press ok button')
GUISetState(@SW_HIDE,$mainwindow)
GUISetState(@SW_SHOW,$dummywindow)
Case $msg[0] = $gui_event_close
_ArrayDisplay($msg)
MsgBox(0, 'window', 'you close main window , exit...')
ExitLoop
EndSelect
Case $dummywindow
Select
Case $msg[0] = -3
_ArrayDisplay($msg)
GUISetState(@SW_HIDE,$dummywindow)
GUISetState(@SW_SHOW,$mainwindow)
Case $msg[0]=$chlid_ok
_ArrayDisplay($msg)
EndSelect
EndSwitch
WEnd
|