C++获取单选框状态

UINT nSex = GetCheckedRadioButton(IDC_WDEV,IDC_WAGI);
switch(nSex)
{
         case IDC_WDEV:
         ::AfxMessageBox("选中写设备");
         Agda_SetTagValue(tagName, &test,true, "TEST");
break;
         case IDC_WAGI:
         ::AfxMessageBox("选中写实时库");
Agda_SetTagValue(tagName, &test,false, "TEST");
break;         
 }       

你可能感兴趣的:(C++_对话框,开发学习)