int nTest = ((CButton *)GetDlgItem(IDC_RADIO1))->GetCheck();
int nTest1 = ((CButton *)GetDlgItem(IDC_RADIO2))->GetCheck();//单选框  
if (nTest == 1)
{
AfxMessageBox("你好a");
}
else if (nTest1 == 1)
{
AfxMessageBox("你好b");
}
else
{
UpdateData(TRUE);
m_comMsg = "你好";
UpdateData(FALSE);
}

//m_sSeclectLevel:静态框的value变量
//m_ctrlSecretLevel:复选框变量

m_ctrlSecretLevel.GetWindowText(m_sSeclectLevel);

if (m_sSeclectLevel.IsEmpty())
{
MessageBox(PRINT_MSG, "打印监控", MB_OK | MB_ICONERROR);
}
else
{
LOG("确认打印,打印密级为 %s", m_sSeclectLevel);
OnOK();
}//复选框


改变提示信息字体颜色
Class -> 类名 ->属性 -> Message -> WM_CTLCOLOR -> <Add> OnCtlColor
int nId = pWnd-> GetDlgCtrlID();
if(nCtlColor == CTLCOLOR_STATIC)
{
if(nId == IDC_STATIC1)
{
pDC-> SetTextColor((COLORREF)(RGB(255,0,0)));
}
}