mfc radio button 怎么设置为单选框
展开全部
到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
}
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
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询