64,654
社区成员
发帖
与我相关
我的任务
分享
void CNewSearchDlg::OnButton2()
{
// TODO: Add your control notification handler code here
GetDlgItemText(IDC_EDIT1,sql);
}
1,先在EDITBOX里面输入123。
2,在点击button2.就会弹出“123”的提示框。
void CNewSearchDlg::OnButton2()
{
// TODO: Add your control notification handler code here
CString sql;//加这行
GetDlgItemText(IDC_EDIT1,sql);
MessageBox(sql);//这里用MessageBox()对sql的测试
}