Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Collapse the table of content
Expand the table of content


Unregisters a pane and removes it from the docking manager.

void RemovePaneFromDockManager(
   CBasePane* pControlBar,
   BOOL bDestroy,
   BOOL bAdjustLayout,
   BOOL bAutoHide,
   CBasePane* pBarReplacement 

[in] pControlBar

A pointer to a pane to be removed.

[in] bDestroy

TRUE to destroy the removed pane. FALSE to not destroy it.

[in] bAdjustLayout

TRUE to adjust the docking layout immediately. If FALSE, the adjustment will occur only when a redraw event occurs for other reasons (the user resizes the window, drags the main frame, etc.).

[in] bAutoHide

TRUE to remove the pane from the list of autohide panes. FALSE to remove the pane from the list of regular panes.

[in] pBarReplacement

A pointer to a pane that replaces the removed pane.

You must register each pane with the docking manager to take part in the docking layout. Use CMDIFrameWndEx::AddPane or CMDIFrameWndEx::InsertPane to register panes.

Use this method when a pane is no longer a part of the docking layout of the frame window.

Header: afxMDIFrameWndEx.h

© 2015 Microsoft