Click to See Complete Forum and Search --> : How to make a dialog window not always on top?


ytsau
June 8th, 1999, 09:31 AM
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.

ytsau@usa.net

June 9th, 1999, 08:24 AM
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 )

ytsau
June 9th, 1999, 09:22 AM
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.

ytsau@usa.net

eien
March 29th, 2004, 12:58 AM
i have the same problem..
can someone help?:(