CheckBox操作

 

 

CButton* pPlaybackCheck=(CButton*)GetDlgItem(IDC_CHECK_PLAYBACK); 

pPlaybackCheck->GetCheck(); //获取checkbox状态,返回值:0为取消,1为选中.

 

 pPlaybackCheck->SetCheck(x);//设置checkbox状态,参数: 0为设置为不选中;

                                                                                                                1为设置为选中;

                                                                                                                 2为不确定。(Set the button state to indeterminate. This value can be used only if the button has the BS_3STATE or BS_AUTO3STATE style.)

你可能感兴趣的:(VC,界面)