Re: Docking in a CMDIChildWnd



The calls to OnSize are due to the initial positioning of the MDIChildFrame and are quite normal.

I should have mentioned that it is the effect of the call to AdjustDockingLayout that causes the docked outlook bar to be resized to zero width. The call to AdjustDockingLayout also seems to be quite reasonable, since resizing the frame should cause the docking inside the frame to be adjusted to the new size. However, this is entirely within MFC, and I don't have enough insight in the internals of MFC to guess why AdjustDockingLayout "wants" the bars to be zero width. So I would be grateful for advice on how to avoid this effecct. :-)

Finn


"Seetharam" <smisro@xxxxxxxxx> wrote in message news:07fd48f6-704e-4268-936a-38205e5490e4@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Try handling the WM_WINDOWPOSCHANGING & WM_WINDOWPOSCHANGED messages
and see who is causing this resize.

-SM


.