Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

CFrameWnd::LoadBarState

Call this function to restore the settings of each control bar owned by the frame window.

void LoadBarState( 
   LPCTSTR lpszProfileName  
);
lpszProfileName

Name of a section in the initialization (INI) file or a key in the Windows registry where state information is stored.

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.

Header: afxwin.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.