怎么用代码设置复选框是否勾选的状态
情况是这样的,复选框开始选中后,然后再弹出来,发现那些打过勾的复选框还是打勾的,我想在点确定时,让已经选中过的复选框,再变成未选中的状态,请问用代码怎么设置呢
[解决办法]
if(((CButton *)GetDlgItem(IDC_RADIO1))->GetCheck())
((CButton *)GetDlgItem(IDC_RADIO1))->SetCheck(FALSE);
else
((CButton *)GetDlgItem(IDC_RADIO1))->SetCheck(TRUE);
[解决办法]
((CButton *)GetDlgItem(IDC_RADIO1))->SetCheck(TRUE);