title: CDialog ShowWindow problem
body: <p>I have a SDI application. In the application there's a modeless dialog which is used to show some message like communicating with the server during doing work. Question is, when the dialog's parent window is set to main frame, the ShowWindow method doesn't work as expected. It seems that the dialog is covered by the main frame. If I put a Sleep call next to ShowWindow call, I can see the dialog. And when Sleep ends, the dialog disappear.If I don't set the dialog's parent, the ShowWindow call works normally. But I do want to set the dialog's parent window. So how to sovle it ? </p>