CButton控件有复选框按钮,单选框按钮,下压按钮。这些都可以改变CButtom的风格来实现。
CButton* button = (CButton*)GetDlgItem(IDC_Button1**Button ID**);
BS_RADIDBUTTON //单选风格按钮
button->SetCheck(true);//选中
button->SetCheck(false);//非选中
CButton控件有复选框按钮,单选框按钮,下压按钮。这些都可以改变CButtom的风格来实现。
CButton* button = (CButton*)GetDlgItem(IDC_Button1**Button ID**);
BS_RADIDBUTTON //单选风格按钮
button->SetCheck(true);//选中
button->SetCheck(false);//非选中