MFC中按下Button按钮,弹出一个窗口的同时关闭本窗口



CMyDlg *dlg = new CMyDlg();                //新建一个CMyDlg对象

this->ShowWindow(SW_HIDE);             //隐藏父窗体                                         

dlg->DoModal();                                       //弹出子窗体

你可能感兴趣的:(C++)