64,653
社区成员
发帖
与我相关
我的任务
分享
//
// CxxDlg . h
class CxxDlg
: public CDialogEx
{
public:
afx_msg void OnLoginBtn();
}
//
// CxxDlg . cpp
void CxxDlg::OnLoginBtn()
{
CNewDlg DLg;
this->OnOK();
DLg.DoModal();
}
// TODO: Add your control notification handler code here
CRead Read; //另一个Dialog对象
CDialog::OnOK(); //关闭当前对话框
Read.DoModal(); //模态对话框