自己试试看,打开过关于以后点退出就没反应了
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Form1", 170, 42, -1, -1)
$Button1 = GUICtrlCreateButton("关于", 8, 8, 75, 25, 0)
$Button2 = GUICtrlCreateButton("退出", 88, 8, 73, 25, 0)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button2
Exit
Case $Button1
$Form2 = GUICreate("关于", 222, 129, -1, -1, "", "", $Form1)
$Exit = GUICtrlCreateButton("关闭", 72, 40, 75, 25, 0)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
GUIDelete($Form2)
Case $Exit
GUIDelete($Form2)
EndSwitch
WEnd
EndSwitch
WEnd
|