This document is archived and information here might be outdated. Recommended version. |
Sets the object that is passed as a hook to the OnCreate event of each item's command.
[Visual Basic .NET] Public Sub SetHook ( _ ByVal Hook As Object _ )
[C#] public void SetHook ( object Hook );
[C++]
HRESULT SetHook(
IDispatch* Hook
);
[C++]
Parameters Hook [in]
Hook is a parameter of type IDispatch
The Hook is a shortcut to ICommandPoolEdit::Hook on the CommandPool. If the ToolbarPalette is an item on the ToolbarControl the Hook is shared and initialized by the ToolbarControl. If the ToolbarPalette is a standalone popup palette use the SetHook method, and optionally share the CommandPool with an existing one within the application.