CFrameWnd::SetDockState
Visual Studio 2012
Call this member function to apply state information stored in a CDockState object to the frame window's control bars.
void SetDockState( const CDockState& state );