mfc的主窗口框架布局是通过个子窗口响应WM_SIZEPARENT来完成的.我想知道如何改变接收WM_SIZEPARENT的顺序. 
就是动态改变他的布局.???

解决方案 »

  1.   

    MFC Private Windows MessagesWM_SIZEPARENT This message is sent by a frame window to its immediate children during resizing (CFrameWnd::OnSize calls CFrameWnd::RecalcLayout which calls CWnd::RepositionBars) to reposition the control bars around the side of the frame. The AFX_SIZEPARENTPARAMS structure contains the current available client rectangle of the parent and a HDWP (which may be NULL) with which to call DeferWindowPos to minimize repainting.wParam
     Not used
     
    lParam
     Address of an AFX_SIZEPARENTPARAMS structure
     
    returns
     Not used (0)
     Ignoring the message indicates that the window doesn't take part in the layout.