#include <GUIConstantsEx.au3>
#include <GuiIPAddress.au3>
#include <TabConstants.au3>
$Form1 = GUICreate("test", 335, 229, 331, 137)
$Tab1 = GUICtrlCreateTab(0, 0, 334, 228)
$TabSheet1 = GUICtrlCreateTabItem("TabSheet1")
$IPAddress1 = _GUICtrlIpAddress_Create($Form1, 200, 200, 130, 21)
_GUICtrlIpAddress_Set($IPAddress1, "0.0.0.0")
$TabSheet2 = GUICtrlCreateTabItem("TabSheet2")
$TabSheet3 = GUICtrlCreateTabItem("TabSheet3")
GUICtrlCreateTabItem("")
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case -3
Exit
EndSwitch
WEnd
如题.
_GUICtrlIpAddress_Create的句柄只能为$Form1而不能$TabSheet1或$Tab1,如此一来这个IP输入框就会存在于所有TabItem中,此是BUG?
高手来支下招!!! |