基 础 函 数 参 考


GUICtrlDelete

删除控件.

GUICtrlDelete ( 控件ID )

参 数

控件ID GUICtrlCreate... 函数返回的控件标识符.

返 回 值

成功: 返回 1.
失败: 返回 0.

备 注

上下文菜单控件参考 GUICtrlCreateContextMenu 函数的备注.

相 关 函 数

GUICreate, GUICtrlCreate..., GUICtrlCreateContextMenu

函 数 示 例


#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)