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

Removes a toolbar's state from the Windows registry.

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

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