Can a modeless Dialog Box be a main window "m_pMainWnd"
C / C++ / MFC
3
Posts
2
Posters
0
Views
1
Watching
-
Hi I am getting a return code of 0 from a Create(IDD_DIALOG,dptr); after I created the dialog on the heap CMyDialog *dgtr = new CMyDialog, in the CWinApp and set it to the main windows m_pMainWnd = dgptr;
-
The question makes no sense. A modeless dialog is designed to be shown while its owner Window can still accept input and respond to messages. If you want a dialog as your main Window then use a modal type, or some appropriate CView class if using MFC.