CFrameWnd::LoadBarState
Visual Studio 2012
Call this function to restore the settings of each control bar owned by the frame window.
void LoadBarState( LPCTSTR lpszProfileName );
Information restored includes visibility, horizontal/vertical orientation, docking state, and control-bar position.
The settings you want to restore must be written to the registry before you call LoadBarState. Write the information to the registry by calling CWinApp::SetRegistryKey. Write the information to the INI file by calling SaveBarState.