Saves the state of the toolbar control in the location in the registry specified by the parameters.
void SaveState(
   HKEY hKeyRoot,
   LPCTSTR lpszSubKey,
   LPCTSTR lpszValueName 
);
Parameters
- hKeyRoot 
 Identifies a currently open key in the registry or any of the following predefined reserved handle values:- HKEY_CLASSES_ROOT 
- HKEY_CURRENT_USER 
- HKEY_LOCAL_MACHINE 
- HKEY_USERS 
 
- lpszSubKey 
 Points to a null-terminated string containing the name of the subkey with which a value is associated. This parameter can be null or a pointer to an empty string. If the parameter is NULL, the value will be added to the key identified by the hKeyRoot parameter.
- lpszValueName 
 Points to a string containing the name of the value to set. If a value with this name is not already present in the key, the function adds it to the key.
Requirements
Header: afxcmn.h