Click to See Complete Forum and Search --> : Forcing modeless dialog to stay on top of modal one ?


June 22nd, 1999, 06:48 PM
Dialog_1 is modal
Dialog_2 is modeless
Dialog_2 is a data member of Dialog_1
How to force Dialog_2 to stay always on top of Dialog_1, even when Dialog_1 has focus

Mindy
June 24th, 1999, 12:52 PM
Use SetWindowPos() with the wndTopMost flag for Dialog_2. This function is pretty well documented in the help. This does make it stay on top ALWAYS, though. It can be really annoying when you try to debug (the dialog stays on top and blocks your view!) If you need more help with this, let me know.
Mindy