Sorry... what I should have been more specific about is:
As the MSDN states:
"Being owned places several constraints on a window.
(1) An owned window is always above its owner in the z-order.
(2) The system automatically destroys an owned window when its owner is destroyed.
(3) An owned window is hidden when its owner is minimized."
I am trying to create a modeless dialog in MFC, but when i do, it has those behaviors, which are undesired.
My code to create the dialog is as follows:
[tt]CDialog::Create(IDD, NULL);[/tt]
The unfortunate problem with this is that somewhere in [tt]DLGCORE.CPP[/tt] lies the code
[tt]if (pParentWnd == NULL)
pParentWnd = AfxGetMainWnd();[/tt]
Is there a way to change this after the dialog has been created, so that the dialog doesn't behave as mentioned above.
Help is helpful, thanks in advance.