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

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

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).

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

Reimplemented from CBCGPToolBar.