mfc radio button 怎么设置为单选框

mfc radio button 怎么设置为单选框 点中一个 另一个不会弹起 什么原因
2025-02-27 14:26:05
推荐回答(1个)
回答1:

到Resource View 里面 把 弧度的属性Group设置为True, 角度为False,初始化OnInitDialog的时候把弧度的radio button SetCheck()下
BOOL CXXXXDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
m_radiohudu.SetCheck(TRUE);
m_radiojiaodu.SetCheck(FALSE);
return TRUE;
// return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}