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

Saves the state of the CBCGPMenuBar object to the Windows registry.

Returns
Nonzero if the object's state was saved successfully; otherwise 0;

This function saves the menu bar's state to the Windows registry.

Usually, you don't need to call this function directly. It's called automatically as a part of workspace serialization process (see CBCGPWorkspace::SaveState for details).

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

Reimplemented from CBCGPToolBar.