创建虚拟(Dummy)控件.
GUICtrlCreateDummy ( )
成功: | 返回控件标识符(控件ID). |
失败: | 返回 0. |
#include <GUIConstantsEx.au3>
Example()
Func Example()
Local
$user, $button, $cancel, $msg
GUICreate("GUICtrlCreateDummy",
250, 200, 100, 200)
GUISetBkColor(0x00E0FFFF) ;
改变背景颜色
$user
= GUICtrlCreateDummy()
$button = GUICtrlCreateButton("事件",
75, 170, 70, 20)
$cancel = GUICtrlCreateButton("取消",
150, 170, 70, 20)
GUISetState()
Do
$msg = GUIGetMsg()
Select
Case $msg
= $button
GUICtrlSendToDummy($user)
Case $msg
= $cancel
GUICtrlSendToDummy($user)
Case $msg
= $user
; 脚本关闭前的专用操作
; ...
Exit
EndSelect
Until
$msg = $GUI_EVENT_CLOSE
EndFunc ;==>Example
provider with jb51.net (unicode) |