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

IHookHelper.FocusMap Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IH > IHookHelper Interface > IHookHelper.FocusMap Property
ArcGIS Developer Help

IHookHelper.FocusMap Property

Focus map of hooked control or application.

[Visual Basic .NET]
Public ReadOnly Property FocusMap As IMap
public IMap FocusMap {get;}
HRESULT get_FocusMap(
  IMap** ppMap
ppMap [out, retval]

ppMap is a parameter of type IMap**

Product Availability

Available with ArcGIS Engine.


The focus map's Map object of the hook passed to the ICommand::OnCreate event. The FocusMap is returned regardless of whether the hook is a MapControl, PageLayoutControl, ToolbarControl (with a 'buddy' MapControl or PageLayoutControl) or ArcMap.

Errors Returned

1063 800A0427: Failed to get active view. 

1060 800A0424: The supplied hook is not valid. 

See Also

IHookHelper Interface

.NET Samples

Move a graphic along a path in ArcMap Dynamic cache layer manager controller Dynamic display animated zoom Dynamic display animated zoom Create a geoprocessing tool to buffer a layer and retrieve messages Simple point plug-in data source Updating the purge rule on a real-time temporal layer Add a custom bookmarks MultiItem to the ToolbarControl