void CEx_ResearchDlg::OnOK()
{
CString str,strCtrl;
str="你的年龄";
UINT nID=GetChecKedRadioButton(IDC_RADIO1,IDC_RADIO4);
GetDlgItemText(nID,strCtrl);
str=str+strCtrl;
str=str+"\n你使用的接入方式:";
nID=GetChecKedRadioButton(IDC_RADIO5,IDC_RADIO8);
GetDlgItemText(nID,strCtrl);
str=str+strCtrl;
str=str+"\n你上网的主要是:\n";
UINT nCheckIDs[4]={IDC_RADIO9,IDC_RADIO10,IDC_RADIO11,IDC_RADIO12};
CButton*pBtn;
for(int i=0;i<4;i++)
{
pBtn=(CButton*)GetDlgItem(nCheckIDs[i]);
if(pBtn->GetCheck())
{
pBtn->GetWindowText(strCtrl);
str=str+strCtrl;
str=str+" ";
}
}
MessageBox(str);
CDialog::OnOK();
}
error C2065: 'GetChecKedRadioButton' : undeclared identifier是什么原因
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
6条回答 默认 最新
- 丨封尘绝念斩丨 2022-04-07 21:33关注
获得0.65元问题酬金 GetChecKedRadioButton这个函数没有定义
、GetCheckedRadioButton_xieqinghuang的博客-CSDN博客 GetCheckedRadioButton CWnd::GetCheckedRadioButton 函数功能:在给定的一组单选框ID中获得当前被选中的单选按钮的ID 函数原型:int GetCheckedRadioButton( int nIDFirstButton, int nIDLastButton ); 返回值: 当有被选中的单选框 https://blog.csdn.net/xieqinghuang/article/details/7876720解决 无用评论 打赏 举报
悬赏问题
- ¥15 R语言绘制生存曲线时出现警告:All aesthetics have length 1, but the data has 2 rows.
- ¥15 苍穹外卖拦截器token为null
- ¥15 pyqt怎么把滑块和输入框相互绑定,求解决!
- ¥20 wpf datagrid单元闪烁效果失灵
- ¥15 券商软件上市公司信息获取问题
- ¥100 ensp启动设备蓝屏,代码clock_watchdog_timeout
- ¥15 Android studio AVD启动不了
- ¥15 陆空双模式无人机怎么做
- ¥15 想咨询点问题,与算法转换,负荷预测,数字孪生有关
- ¥15 C#中的编译平台的区别影响