I have CFrameWndEx with several docked CDockablePanes, but I canβt get notified when the docked panel is resized (so I can resize my other windows). I tried Spy ++ to check messages, but the user draw seems to be the only one (which does not seem appropriate), and also tried to override RecalcLayout, but this is not caused in this circumstance. OnSize does not work because the size of the frame itself does not change. Any ideas?
(Ps: I am sure this is possible because I had a splitter window as a client area and it would change the dimension magically when the panel sizes were changed)
, , , Google, , , , :)
, Google, void CFrameWndEx:: EAdjustDockingLayout (HDWP hdwp) . // , m_dockManager.GetClientAreaBounds(). My AdjustDockingLayout (m_View - , -, ):
void CMainFrame::AdjustDockingLayout(HDWP hdwp) { CFrameWndEx::AdjustDockingLayout(hdwp); if (m_View.GetSafeHwnd()) { CRect rectUsable = m_dockManager.GetClientAreaBounds(); m_View.MoveWindow(rectUsable); } }
, , "" CFrameWndEx , " ". Spy ++ - CFrameWndEx ( ) . , , CFrameWndEx , ( ) CFrameWndEx, , .
, , , , . , - , CFrameWndEx, . CFrameWndEx ?