How do I reposition and resize a dialog at runtime (programmatically)
Posted on 1997-05-02
In CView::OnInitialUpdate() of my app, I create a modeless dialog box. I want to be able to set the reposition and resize of the dialog at runtime. I am having problems with the CWnd::MoveWindow(). I cannot seem to get it to work. The dialog does not end up in what I think is the correct place. I tried the following method.
modify dwRect based on fwRect
I calculate the new dialog position and size based on the CFrameWnd's position and size. How do I need to do this?