为什么有些人贴代码总是
1,用不能直接运行的代码?
2,头文件呢?
3,代码标签也不会插入吗?#include <GuiIPAddress.au3>
$hGui = GUICreate('TAB内显隐Ip控件 By Afan')
$tab = GUICtrlCreateTab(5, 5, 392, 370)
GUICtrlCreateTabItem('标签页 1')
GUICtrlCreateTabItem('标签页 2')
GUICtrlCreateTabItem('标签页 3')
GUICtrlCreateTabItem('标签页 4')
$IpShow = GUICtrlCreateTabItem('有IP页 5')
$NetBtn = GUICtrlCreateButton("连接", 250, 250, 75, 25)
GUICtrlCreateTabItem('标签页 6')
GUICtrlCreateTabItem('')
$IP = _GUICtrlIpAddress_Create($hGui, 211, 184, 122, 18)
_GUICtrlIpAddress_Set($IP, '192.168.1.1')
_GUICtrlIpAddress_ShowHide($IP, @SW_HIDE)
GUISetState()
While 1
Switch GUIGetMsg()
Case -3
Exit
Case $tab
Switch GUICtrlRead($tab)
Case $IpShow - 4
_GUICtrlIpAddress_ShowHide($IP, @SW_SHOW)
Case Else
_GUICtrlIpAddress_ShowHide($IP, @SW_HIDE)
EndSwitch
Case $NetBtn
MsgBox(4096, "", _GUICtrlIpAddress_Get($IP))
EndSwitch
WEnd
|