15,979
社区成员
发帖
与我相关
我的任务
分享
// CXXDlg 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
// }
CFrameWnd* pFrame = new CFrameWnd;
m_pMainWnd = pFrame;
// create and load the frame with its resources
pFrame->Create(NULL, NULL);
// The one and only window has been initialized, so show and update it.
CXXDlg dlg;
dlg.DoModal();