Function Reference

GUIDelete

Deletes a GUI window and all controls that it contains.

GUIDelete ( [winhandle] )

 

Parameters

winhandle [optional] Windows handle as returned by GUICreate (default is the previous used).

 

Return Value

Success: Returns 1.
Failure: Returns 0.

 

Remarks

None.

 

Related

GUICreate

 

Example


#include <GUIConstants.au3>

GUICreate("My GUI")  ; will create a dialog box that when displayed is centered

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

GUIDelete();    ; will return 1