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]