How to make a dialog window not always on top?
In a dialog based windows program, I can create another modeless dialog window by showing it, such as:
NewDialog.ShowWindow(SW_SHOW);
The problem is that such a window is always floating on top of the parent window. I even tried
SetWindowPos(WindBottom, 0,0,0,0, SWP_NOMOVE|SWP_NOSIZE), and it still stayed on
top. How do I solve this problem?
BTW: When this is done with SDI application, everything is just fine. I don't understand why
Dialog based application is not working.
[email protected]
Re: How to make a dialog window not always on top?
Try using NewDialog.ShowWindow( SW_HIDE ) when you don't want it on top and then when you do want it on top NewDialog.ShowWindow( SW_SHOW )
Re: How to make a dialog window not always on top?
Yes, that's what I had to do: hide the modeless window when it is not active. But I want the window
is still visible while it is not active or even partially overlaped. Any better idea?
Thanks a lot for your comment.
[email protected]