Поделиться через


CToolBarCtrl::RestoreState

Restores the state of the toolbar control from the location in the registry specified by the parameters.

void RestoreState(
   HKEY hKeyRoot,
   LPCTSTR lpszSubKey,
   LPCTSTR lpszValueName 
);

Параметры

  • 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 retrieve. If a value with this name is not already present in the key, the function adds it to the key.

Требования

Header: afxcmn.h

См. также

Основные понятия

CToolBarCtrl Class

CToolBarCtrl Members

Hierarchy Chart

CToolBarCtrl::SaveState