删除控件.
GUICtrlDelete ( 控件ID )
控件ID | 由 GUICtrlCreate... 函数返回的控件标识符. |
成功: | 返回 1. |
失败: | 返回 0. |
#include <GUIConstantsEx.au3>
Example()
Func Example()
Local
$date, $del, $msg
GUICreate("删除
GUI 控件演示", 200, 200, 800, 200)
$date
= GUICtrlCreateDate("1953/04/25", 10, 10, 185, 20)
$del
= GUICtrlCreateButton("删除控件", 50,
50, 70, 20)
GUISetState()
; 运行 GUI, 直到
GUI 被关闭
Do
$msg = GUIGetMsg()
If $msg = $del Then
GUICtrlDelete($date)
GUICtrlDelete($del)
EndIf
Until
$msg = $GUI_EVENT_CLOSE
EndFunc ;==>Example
provider with jb51.net (unicode) |