CFrameWnd::FloatControlBar
Visual Studio 2012
Call this function to cause a control bar to not be docked to the frame window.
void FloatControlBar( CControlBar * pBar, CPoint point, DWORD dwStyle = CBRS_ALIGN_TOP );
Typically, this is done at application startup when the program is restoring settings from the previous execution.
This function is called by the framework when the user causes a drop operation by releasing the left mouse button while dragging the control bar over a location that is not available for docking.