Function Reference


_GUICtrlIpAddress_ShowHide

Shows/Hides the IP address control

#include <GuiIPAddress.au3>
_GUICtrlIpAddress_ShowHide ( $hWnd, $iState )

Parameters

$hWnd Handle to the control
$iState State of the IP Address control, can be one of the following values: @SW_HIDE or @SW_SHOW

Return Value

True: the control was previously visible.
False: the control was previously hidden.

Example

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

Example()

Func Example()
        Local $hGui, $hIPAddress

        $hGui = GUICreate("IP Address Control Show/Hide Example", 300, 150)
        $hIPAddress = _GUICtrlIpAddress_Create($hGui, 10, 10)
        GUISetState(@SW_SHOW)

        _GUICtrlIpAddress_Set($hIPAddress, "24.168.2.128")

        Sleep(1000)
        _GUICtrlIpAddress_ShowHide($hIPAddress, @SW_HIDE)
        Sleep(1000)
        _GUICtrlIpAddress_ShowHide($hIPAddress, @SW_SHOW)

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