关于MFC的控件
MFC的控件设置和编程代码能像VB一样使用控件阵列~以指数来代表相同类型却不同功能的控件吗?
如果可以请问要如何设置?
程序代码:
void CSTDFProcessDlg::OnCheck() //IDC_RADIO1,IDC_RADIO2,IDC_RADIO3,IDC_RADIO4
{
// TODO: Add your control notification handler code here
CString str;
m_Check.GetDlgItemText(IDC_RADIO1,str);
//m_Check是一个Radio Button群组中的第一个控件对象,
//参考自http://konshi. //每个控件都有一个ID值,我希望透过这个函数的页面辨识获取使用者选到哪个个控件~
//并传回控件上设定的字串,以便后续动作,但是都传回空值~不然就部管选哪个都
//只会传回第一个控件值,要怎改?
}

程序代码:
void CSTDFProcessDlg::OnCheck1() //(1)
{
// TODO: Add your control notification handler code here
TransformMode=1;
}
void CSTDFProcessDlg::OnCheck2() //(2)
{
// TODO: Add your control notification handler code here
TransformMode=2;
}
void CSTDFProcessDlg::OnCheck3() //(3)
{
// TODO: Add your control notification handler code here
TransformMode=3;
}
void CSTDFProcessDlg::OnCheck4() //(4)
{
// TODO: Add your control notification handler code here
TransformMode=4;
}
