切換 GUI 函數(shù)的當前窗口.
GUISwitch ( 句柄 [, 標簽項目ID] )
句柄 | 切換為當前窗口的句柄. |
標簽項目ID | [可選參數(shù)] 被選中標簽項目的控件標識符. |
成功: | 返回上一個"當前"窗口的句柄. |
失敗: | 返回空句柄. |
#include <GUIConstantsEx.au3>
Example()
Func Example()
Local
$parent1,
$parent2,
$TabItem ,
$msg
$parent1 = GUICreate("父窗
1")
GUICtrlCreateTab(10, 10)
$TabItem = GUICtrlCreateTabItem
("標簽 1")
GUICtrlCreateTabItem ("標簽 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) |