Because the first dosen't create the dialog's underlying window?
Modles dialog creation without using dialog pointer
-
29-06-2023 - |
Pregunta
Why second line of code below rises exception
StatusDlg statusDlg (CWnd::GetDesktopWindow());
statusDlg.ShowWindow(SW_SHOW);
and code below goes without problems
StatusDlg * statusDlg = new StatusDlg(NULL);
statusDlg->Create(StatusDlg::IDD,CWnd::GetDesktopWindow());
statusDlg->ShowWindow(SW_SHOW)
?
Solución
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow