首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

CButton:SetCheck()//应用的时候参数一般是true或者false//但是msdn里并没有

2013-01-05 
CButton::SetCheck()//使用的时候参数一般是true或者false//但是msdn里并没有啊void SetCheck(int nCheck)

CButton::SetCheck()//使用的时候参数一般是true或者false//但是msdn里并没有啊


void SetCheck( 
   int nCheck  
);

Parameters
nCheck
Specifies the check state. This parameter can be one of the following:

BST_UNCHECKED
Set the button state to unchecked.
BST_CHECKED
Set the button state to checked.
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.

[解决办法]
BST_CHECKED/BST_UNCHECED 即可
[解决办法]
你理解错拉,参数不是true或false

应该为BST_UNCHECKED、BST_CHECKED、BST_INDETERMINATE
其中之一

热点排行