ArcObjects Library Reference (Controls)  

IHookHelper Interface

Provides access to members needed when developing commands to work with the MapControl, PageLayoutControl, ArcMap, and custom controls and applications.

Product Availability

Available with ArcGIS Engine.

Description

Use the IHookHelper interface to return the ActiveView, PageLayout or FocusMap of the hook passed to the ICommand::OnCreate event regardless of whether the hook is a MapControl, PageLayoutControl, ToolbarControl or ArcMap.

Members

Description
Read-only property ActiveView Active view of hooked control or application.
Read-only property FocusMap Focus map of hooked control or application.
Read/write property Hook Hook object that should be the same as the hook object passed in ICommand::OnCreate.
Read-only property OperationStack Operation stack of hooked control or application used for undo/redo operations.
Read-only property PageLayout Page layout of hooked control or application.

CoClasses that implement IHookHelper

CoClasses and Classes Description
HookHelper Helps commands work with the MapControl, PageLayoutControl, ArcMap, custom controls and applications.