CMDIFrameWndEx::RemovePaneFromDockManager
Visual Studio 2012
Unregisters a pane and removes it from the docking manager.
void RemovePaneFromDockManager( CBasePane* pControlBar, BOOL bDestroy, BOOL bAdjustLayout, BOOL bAutoHide, CBasePane* pBarReplacement );
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.