This document is archived and information here might be outdated.  Recommended version.


IToolbarPalette.SetHook Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IT > IToolbarPalette Interface > IToolbarPalette.SetHook Method
ArcGIS Developer Help

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