|
I create a modeless dialog in the View class. Just started
CMyDialog * pDlg = new CMyDialog ();
Then pDlg-> Create (IDD_DIALOG);
pDlg-> ShowWindow (SW_SHOW);
No problem at all, everything works fine.
But the teacher asked later, do not use this, define a MyDialog member variable dlg in View
Then display it with dlg.
I just dlg.Create and dlg.ShowWindow
However, it can be displayed once each time, and an error will be displayed the second time.
why? What should I do? ?
Please master pointing. Thanks thank you very much |
|