void SetCheck(
int nCheck
);
參數:
nCheck 指定按鈕控件的選中狀態。可能的取值如下:
值 含義
0 把按鈕設為未選中狀態
1 把按鈕設為選中狀態
2 把按鈕設為不確定狀態。僅當按鈕的風格是BS_3STATE或BS_AUTO3STATE時有效
說明:
本函數用于設置或者重置單選鈕和復選框的狀態。它對一般的按鈕沒有影響。
Value Meaning
(0)BST_UNCHECKED Set the button state to unchecked.
(1)BST_CHECKED Set the button state to checked.
(2)BST_INDETERMINATE Set the button state to indeterminate. This value can be used only if the button has the BS_3STATE or BS_AUTO3STATE style.
全站熱搜