1、首先创建CAboutDl对话框类

2、然后编写DoDataExchange方法

3、然后编写对话框初始化程式

4、然后编写OnSysCommand命令程式

5、然后编写OnPaint方法

6、最后编写单选框程式void CDemoDlg::OnTest()
void CDemoDlg::OnTest()
{
//获得单选按钮的选中状态
if (((CButton*)GetDlgItem(IDC_RADIO1))->GetCheck())
{
AfxMessageBox(_T("单选按钮1选中。"));
}
if (((CButton*)GetDlgItem(IDC_RADIO2))->GetCheck())
{
AfxMessageBox(_T("单选按钮2选中。"));
}
if (((CButton*)GetDlgItem(IDC_RADIO3))->GetCheck())
{
AfxMessageBox(_T("单选按钮3选中。"));
}
}
