#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Form1", 294, 213, 192, 124)
$Button1_1 = GUICtrlCreateButton("更多...", 176, 136, 97, 57, 0)
$Form2 = GUICreate("Form2", 219, 213, 302, 218)
$Button1_2 = GUICtrlCreateButton("设置1", 72, 48, 75, 25, 0)
$Button2_2 = GUICtrlCreateButton("设置2", 72, 88, 75, 25, 0)
$Button3_2 = GUICtrlCreateButton("设置3", 72, 128, 75, 25, 0)
GUISetState(@SW_SHOW,$Form1)
GUISetState(@SW_HIDE,$Form2)
While 1
$Msg1 = GUIGetMsg()
Switch $Msg1
Case $GUI_EVENT_CLOSE
Exit
Case $Button1_1
GUISetState(@SW_DISABLE,$Form1)
GUISetState(@SW_SHOW,$Form2)
While 2
$Msg2 = GUIGetMsg()
Select
Case $Msg2 = $GUI_EVENT_CLOSE
GUISetState(@SW_HIDE,$Form2)
GUISetState(@SW_ENABLE,$Form1)
WinActivate($Form1)
ExitLoop
Case $Msg2 = $Button1_2
;
Case $Msg2 = $Button2_2
;
Case $Msg2 = $Button3_2
;
EndSelect
WEnd
EndSwitch
WEnd
|