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

Removes a toolbar's state from the Windows registry.

Nonzero if successful; otherwise 0.

This function removes a toolbar's state from the Windows registry. Usually, it is called when a user-defined toolbar is being deleted. You should override the RemoveStateFromRegistry member function if you store in the registry some additional state of CBCGPBaseToolBar - derived objects.

lpszProfileNameSpecifies the registry key where the state is located.
nIndexSpecifies a toolbar's control ID.
uiIDSpecifies a toolbar's resource ID (can be -1).