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