C++获取单选框状态

来源:互联网 发布:初级程序员 软件设计师 编辑:程序博客网 时间:2024/06/07 01:07
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;         
 }       
0 0
原创粉丝点击