This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.
void RemovePaneFromDockManager(
   CBasePane* pControlBar,
   BOOL bDestroy,
   BOOL bAdjustLayout,
   BOOL bAutoHide,
   CBasePane* pBarReplacement
);
Parameters
- [in] pControlBar 
 
- [in] bDestroy 
 
- [in] bAdjustLayout 
 
- [in] bAutoHide 
 
- [in] pBarReplacement 
 
Requirements
Header: afxoleipframewndex.h