Deletes a GUI window and all controls that it contains.
GUIDelete ( [winhandle] )
winhandle | [optional] Windows handle as returned by GUICreate() (default is the previously used window). |
Success: | 1. |
Failure: | 0. |
#include <GUIConstantsEx.au3>
Example()
Func Example()
GUICreate("My GUI") ; will create a dialog box that when displayed is centered
GUISetState(@SW_SHOW) ; will display an empty dialog box
; Loop until the user exits.
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
ExitLoop
EndSwitch
WEnd
GUIDelete(); ; will return 1
EndFunc ;==>Example