CFrameWnd::GetControlBar
Visual Studio 2012
Call GetControlBar to gain access to the control bar that is associated with the ID.
CControlBar* GetControlBar( UINT nID );
The nID parameter refers to the unique identifier passed to the Create method of the control bar. For more information on control bars, refer to the topic entitled Control Bars.
GetControlBar will return the control bar even if it is floating and thus is not currently a child window of the frame.