2015-07-10 47 views

回答

3

要啓用或禁用控件,請使用EnableWindow函數。

如果要更改已選狀態,可以使用CheckDlgButton函數。

例子:

void MyCheckDlgButton(HWND parent, int buttonId, bool check) 
{ 
    CheckDlgButton(parent, buttonId, check ? BST_CHECKED : BST_UNCHECKED); 
} 
+0

謝謝,它的工作原理。 – user1141649