Modeless dialog always remanins in foreground?
-
I am working on SDI application that creates a modeless dialog, the problem is that modeless dialog always remains in foreground, even if i click on the title bar of the sdi frame. I have set style of sdi frame window to WS_EX_TOPMOST but it donot works for modeless dialog. How can i bring modeless dialog to the back of Z order, SetWindowPosition also do not work. It looks that windows always puts modeless dialog in forground of main window. how this default behaviour can be changed.
-
I am working on SDI application that creates a modeless dialog, the problem is that modeless dialog always remains in foreground, even if i click on the title bar of the sdi frame. I have set style of sdi frame window to WS_EX_TOPMOST but it donot works for modeless dialog. How can i bring modeless dialog to the back of Z order, SetWindowPosition also do not work. It looks that windows always puts modeless dialog in forground of main window. how this default behaviour can be changed.
Create the dialog as child of the desktop (GetDesktopWindow()) instead of the main application window ...
-
Create the dialog as child of the desktop (GetDesktopWindow()) instead of the main application window ...