Prev Next

TB_SAVERESTORE Overview  Group

The TB_SAVERESTORE message saves or restores the state of the toolbar.

TB_SAVERESTORE 

wParam = (WPARAM) (BOOL) fSave; 

lParam = (LPARAM)  (TBSAVEPARAMS *)ptbsp; 

 

Parameters

fSave
Save or restore flag. If this parameter is TRUE, the information is saved. If it is FALSE, it is restored.
ptbsp
Pointer to a TBSAVEPARAMS structure that specifies the registry key, subkey, and value name for the toolbar state information.

Return Values

No return value.

Remarks

To save and restore a toolbar’s settings using the TB_SAVERESTORE message, the parent window of the toolbar control must implement a handler for the TBN_GETBUTTONINFO notification message. The toolbar uses this notification to retrieve information about the buttons as they are read out of the registry.

See Also

TBN_GETBUTTONINFO, TBSAVEPARAMS