本帖最后由 261869247 于 2010-7-30 16:53 编辑
大家帮忙看看这段代码 如何从子窗口返回到主界面#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Form1", 251, 95, -1, -1)
$Button1 = GUICtrlCreateButton("登陆", 72, 16, 97, 49)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
GUIDelete($Form1)
$Form1 = GUICreate("Form1", 251, 95, 222, 290)
$Button1 = GUICtrlCreateButton("返回登录界面", 72, 16, 97, 49)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
; 这里写什么代码如何删除当前GUI 返回到主界面
EndSwitch
WEnd
EndSwitch
WEnd
|