Re: modeless dialog boxes and z order
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Wed, 22 Aug 2007 20:27:08 -0400
This is contrary to how dialogs work. Modeless dialogs are normally on top of their
parent. You can make the desktop window their parent, and this leads to other serious
consequences,
It is Windows handling the issue. SetWindowPos can adjust the relative positions of the
dialogs with respect to each other's Z-order, but they will necessarily be on top of their
parent, because that's how dialogs are implemented. By the way, did you check the result
of SetWindowPos to see if it actually worked?
joe
On Wed, 22 Aug 2007 16:58:02 -0700, CharlieB <CharlieB@xxxxxxxxxxxxxxxxx> wrote:
My dialog based app creates several modeless dialogs. I want the window withJoseph M. Newcomer [MVP]
focus to always be on top. So I want the modeless dialogs on top when
activated. I want the main window on top when it is activated (click on it).
I know this is contrary to standard behavior. I also know I may end up
with hidden windows and have a plan. At this point however I cannot find a
way for a modeless dialog to be below the window that created it.
I have tried many different calls to SetWindowPos but somehow either MFC or
Windows overrides these.
Any help greatly appreciated.
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Prev by Date: Re: Icon label arranger
- Next by Date: Re: modeless dialog boxes and z order
- Previous by thread: Re: Icon label arranger
- Next by thread: Re: modeless dialog boxes and z order
- Index(es):
Relevant Pages
|