函数参考


_GUICtrlIpAddress_Destroy

删除控件

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

参数

$hWnd 控件句柄

返回值

成功: 返回 True, 句柄设置为 0
失败: 返回 False

注意/说明

仅限用于 _GUICtrlIpAddress_Create 创建的IP地址控件

相关

_GUICtrlIpAddress_Create

示例/演示


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

$Debug_IP = False ; Check ClassName being passed to IPAddress functions, set to True and use a handle to another control to see it work

_Main()

Func _Main()
    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(4160, "信息", "Destroy IP Address Control")
    _GUICtrlIpAddress_Destroy($hIPAddress)

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