To show a dialog I use the following code:
Code: Select all
myDialog* dlg = new myDialog(this);
dlg->ShowModal();
dlg->Destroy();
Code: Select all
myDialog dlg(this);
dlg.ShowModal();
When I have to pass the this-pointer as the parent window and what happens, if I pass a NULL-pointer?
When I have to call Destroy() and delete, resp. to remove the dialog?
What means "TopLevelWindow"? Are these windows without a parent?
Thanks in advance.
Rob'