将 CXXDlg dlg;//输入用户名和密码的对话框 if(IDCANCEL == dlg.DomModal()) return FALSE; 加在 C***Dlg dlg; m_pMainWnd = &dlg; int nResponse = dlg.DoModal(); if (nResponse == IDOK) { // TODO: Place code here to handle when the dialog is // dismissed with OK } else if (nResponse == IDCANCEL) { // TODO: Place code here to handle when the dialog is // dismissed with Cancel } 之前
{
CXXDlg dlg;
if(IDCANCEL == dlg.DomModal())
return FALSE;
}
CXXDlg dlg;//输入用户名和密码的对话框
if(IDCANCEL == dlg.DomModal())
return FALSE;
加在
C***Dlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
之前