Function Reference


_GUICtrlIpAddress_Destroy

Delete the IP Address control

#include <GuiIPAddress.au3>
_GUICtrlIpAddress_Destroy ( ByRef $hWnd )

Parameters

$hWnd Handle to the control

Return Value

Success: True, $hWnd is set to 0.
Failure: False.

Remarks

Restricted to only be used on IP Address controls created with _GUICtrlIpAddress_Create().

Related

_GUICtrlIpAddress_Create

Example

#include <GUIConstantsEx.au3>
#include <GuiIPAddress.au3>
#include <MsgBoxConstants.au3>
#include <WindowsConstants.au3>

Example()

Func Example()
        Local $hGui, $hIPAddress

        $hGui = GUICreate("IP Address Destroy Control Example", 400, 300)
        $hIPAddress = _GUICtrlIpAddress_Create($hGui, 10, 10, 125, 30, $WS_THICKFRAME)
        GUISetState(@SW_SHOW)

        ; Clear the IP Address
        MsgBox($MB_SYSTEMMODAL, "Information", "Destroy IP Address Control")
        _GUICtrlIpAddress_Destroy($hIPAddress)

        ; Wait for user to close GUI
        Do
        Until GUIGetMsg() = $GUI_EVENT_CLOSE
EndFunc   ;==>Example