切換 GUI 函數(shù)的當(dāng)前窗口.
GUISwitch ( 句柄 [, 標(biāo)簽項(xiàng)目ID] )
句柄 | 切換為當(dāng)前窗口的句柄. |
標(biāo)簽項(xiàng)目ID | [可選參數(shù)] 被選中標(biāo)簽項(xiàng)目的控件標(biāo)識符. |
成功: | 返回上一個"當(dāng)前"窗口的句柄. |
失敗: | 返回空句柄. |
#include <GUIConstantsEx.au3>
Example()
Func Example()
Local
$parent1,
$parent2,
$TabItem ,
$msg
$parent1 = GUICreate("父窗
1")
GUICtrlCreateTab(10, 10)
$TabItem = GUICtrlCreateTabItem
("標(biāo)簽 1")
GUICtrlCreateTabItem ("標(biāo)簽 2")
GUICtrlCreateTabItem ("")
$parent2 = GUICreate("父窗
2", -1,
-1, 100,
100)
GUISwitch($parent2)
GUISetState()
Do
$msg = GUIGetMsg()
Until
$msg = $GUI_EVENT_CLOSE
GUISwitch($parent1, $TabItem )
GUICtrlCreateButton("確定",
50, 50, 50)
GUICtrlCreateTabItem ("")
GUISetState(@SW_SHOW, $parent1)
Do
$msg = GUIGetMsg()
Until
$msg = $GUI_EVENT_CLOSE
EndFunc ;==>Example
provider with jb51.net (unicode) |