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 | ||
---|---|---|
ActiveView | Active view of hooked control or application. | |
FocusMap | Focus map of hooked control or application. | |
Hook | Hook object that should be the same as the hook object passed in ICommand::OnCreate. | |
OperationStack | Operation stack of hooked control or application used for undo/redo operations. | |
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. |