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

Stores a toolbar's state into the Windows registry.

Nonzero if successful; otherwise 0.

Usually, this function is called by the framework when a workspace state is being saved to the registry (see CBCGPWorkspace::SaveState ).

lpszProfileNameSpecifies the relative path to the Windows registry key.
nIndexSpecifies a toolbar's control ID.
uiIDSpecifies a toolbar's resource ID.

Reimplemented from CBCGPControlBar.

Reimplemented in CBCGPMenuBar.