15,979
社区成员
发帖
与我相关
我的任务
分享
CPasswordDlg pwd; // 你密码对话框
if(IDOK == pwd.DoModal())
{
// 这里判断密码是否正确
}
else
{
return FALSE;
}
CXXXDlg dlg; //你的主对话框
m_pMainWnd = &dlg;
INT_PTR 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
}
return FALSE;