发表评论
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。
void CSkyEducationDlg::OnOK()
{
// TODO: Add extra validation here
//
UpdateData(true);
CString UserName,UserPwd;
UserName = this->m_UserName;
UserPwd = this->m_UserPwd;
CString sMessage,sTmp;
if(this->m_Sex==0)
{
sMessage="性别:男";
}
else
{
sMessage="性别:女";
}
sMessage=sMessage+"\n您的爱好是:\n";
CButton * pBtn = NULL ;
pBtn = (CButton * )GetDlgItem(IDC_CHECK1);
if(NULL != pBtn && pBtn->GetCheck())
{
pBtn->GetWindowText(sTmp);
sMessage += sTmp + "、";
}
pBtn = (CButton * )GetDlgItem(IDC_CHECK2);
if(NULL != pBtn && pBtn->GetCheck())
{
pBtn->GetWindowText(sTmp);
sMessage += sTmp + "、";
}
pBtn = (CButton * )GetDlgItem(IDC_CHECK3);
if(NULL != pBtn && pBtn->GetCheck())
{
pBtn->GetWindowText(sTmp);
sMessage += sTmp + "、";
}
pBtn = (CButton * )GetDlgItem(IDC_CHECK4);
if(NULL != pBtn && pBtn->GetCheck())
{
pBtn->GetWindowText(sTmp);
sMessage += sTmp + "";
}
MessageBox(sMessage,"系统提示您");
}
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。