BCGControlBar Pro for MFC
virtual BOOL CBCGPMenuBar::LoadState ( LPCTSTR  lpszProfileName = NULL,
int  nIndex = -1,
UINT  uiID = (UINT)-1 
)
virtual

Loads the state of the CBCGPMenuBar object from the Windows registry.

Returns
Nonzero when the state was loaded successfully; otherwise 0.

Use this function to load the state of the CBCGPMenuBar object from the Windows registry. The state should be previously saved by the SaveState() function. The state includes information about customized menu items (names, images and so on), the menu bare docking state and its position.

Usually, you don't need to call the LoadState function directly for the menu bar objects, because it is called automatically during the workspace initialization.

Parameters
lpszProfileNameA path to the Windows registry key.
nIndexSpecifies the menu bar control ID.
uiIDReserved

Reimplemented from CBCGPToolBar.