删除窗口及其包含的所有控件.
GUIDelete ( [窗口句柄] )
窗口句柄 | [可选参数] 由 GUICreate() 函数返回的窗口句柄(default(默认) = 上次使用的句柄). |
成功: | 返回 1. |
失败: | 返回 0. |
#include <GUIConstantsEx.au3>
Example()
Func Example()
Local
$msg
GUICreate("我的
GUI") ; 创建居中显示的 GUI
窗口
GUISetState() ; 显示一个空白的窗口
; 运行 GUI, 直到
GUI 被关闭
While
1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
GUIDelete(); ; 将返回 1
EndFunc ;==>Example
provider with jb51.net (unicode) |