清除IP地址控件内容.
#Include <GuiIPAddress.au3>
_GUICtrlIpAddress_ClearAddress($hWnd)
$hWnd | 控件句柄 |
#include <GUIConstantsEx.au3>
#include <GuiIPAddress.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 Control Clear Example", 400, 300)
$hIPAddress = _GUICtrlIpAddress_Create($hgui, 10, 10)
GUISetState(@SW_SHOW)
_GUICtrlIpAddress_Set($hIPAddress, "24.168.2.128")
; Clear the IP Address
MsgBox(4160, "信息", "Clear IP Address")
_GUICtrlIpAddress_ClearAddress($hIPAddress)
; Wait for user to close GUI
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
EndFunc ;==>_Main