ArcObjects Library Reference (Controls)  

IHookHelper.FocusMap Property

Focus map of hooked control or application.

[Visual Basic .NET]
Public ReadOnly Property FocusMap As IMap
[C#]
public IMap FocusMap {get;}
[C++]
HRESULT get_FocusMap(
  IMap** ppMap
);
[C++]

Parameters

ppMap [out, retval]

  ppMap is a parameter of type IMap

Product Availability

Available with ArcGIS Engine.

Description

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

Add a custom bookmarks MultiItem to the ToolbarControl (Code Files: SpatialBookmarks) | Create a geoprocessing tool to buffer a layer and retrieve messages (Code Files: BufferDlg) | Dynamic cache layer manager controller (Code Files: CacheManagerDlg) | Dynamic display animated zoom (Code Files: AnimatedZoomInTool AnimatedZoomOutTool) | Move a graphic along a path in ArcMap (Code Files: cmdMoveGraphicAlongPath) | Simple point plug-in data source (Code Files: OpenSimplePointDlg) | Updating the purge rule on a real-time temporal layer (Code Files: TAPurgeRuleCmd) |

.NET Related Topics

How to create dynamic menu commands using a MultiItem |