调整窗口的状态.
GUISetState ( [标志 [, 窗口句柄]] )
标志 | [可选参数] @SW_SHOW = 使已隐藏窗口显示出来(默认) @SW_HIDE = 隐藏窗口 @SW_MINIMIZE = 最小化窗口 @SW_MAXIMIZE = 最大化窗口 @SW_RESTORE = 还原窗口最小化 @SW_DISABLE = 禁用窗口 @SW_ENABLE = 启用窗口 @SW_LOCK = 锁定窗口,避免被重画. @SW_UNLOCK = 解锁窗口,允许被重画. @SW_SHOWDEFAULT - Sets the show state based on the SW_ flag specified in the STARTUPINFO structure @SW_SHOWMAXIMIZED - Activates the window and displays it as a maximized window @SW_SHOWMINIMIZED - Activates the window and displays it as a minimized window @SW_SHOWMINNOACTIVE - Displays the window as a minimized window @SW_SHOWNA - Displays the window in its current state @SW_SHOWNOACTIVATE - Displays a window in its most recent size and position @SW_SHOWNORMAL - Activates and displays a window |
窗口句柄 | [可选参数] 窗口句柄,可由 GUICreate 的返回值获得(若缺省则使用上一次用过的句柄). |
成功: | 返回 1. |
失败: | 返回 0. |
#include <GUIConstantsEx.au3>
Example()
Func Example()
Local $msg
GUICreate("My GUI") ; start the definition
GUISetState() ; will display an empty dialog box
; Run the GUI until the dialog is closed
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
EndFunc ;==>Example