Export (0) Print
Expand All
Expand Minimize

TB_SAVERESTORE message

Send this message to initiate saving or restoring a toolbar state.

Parameters

wParam

Save or restore flag. If this parameter is TRUE, the information is saved. If it is FALSE, the information is restored.

lParam

Pointer to a TBSAVEPARAMS structure that specifies the registry key, subkey, and value name for the toolbar state information.

Return value

No return value.

Remarks

For version 4.72 and earlier, to use this message to save or restore a toolbar, the parent window of the toolbar control must implement a handler for the TBN_GETBUTTONINFO notification code. The toolbar issues this notification to retrieve information about each button as it is restored.

Version 5.80 includes a new save/restore option. At the beginning of the process, and as each button is saved or restored, your application will receive a TBN_SAVE or TBN_RESTORE notification. To use this option, you must implement notification handlers to provide the Shell with the bitmap and state information it needs to successfully save or restore the toolbar state.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Commctrl.h

Unicode and ANSI names

TB_SAVERESTOREW (Unicode) and TB_SAVERESTOREA (ANSI)

 

 

Community Additions

ADD
Show:
© 2014 Microsoft