ArcObjects Library Reference (Controls)  

IToolbarPalette.SetHook Method

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*

Product Availability

Available with ArcGIS Engine.

Description

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.

See Also

IToolbarPalette Interface

.NET Snippets

Create PopUp ToolbarPalette