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


IHookHelperEvents.OnHookUpdated Event (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IH > IHookHelperEvents Interface > IHookHelperEvents.OnHookUpdated Event
ArcGIS Developer Help

IHookHelperEvents.OnHookUpdated Event

Fires when the hook object or one of its properties has been replaced or updated.

[Visual Basic .NET]
Public Event OnHookUpdated As OnHookUpdatedEventHandler
[C#]
public event OnHookUpdatedEventHandler OnHookUpdated
[C++]
HRESULT OnHookUpdated(
  esriHookHelperEvents hookEvent
);
[C++]
Parameters
hookEvent [in]

hookEvent is a parameter of type esriHookHelperEvents

Product Availability

Available with ArcGIS Engine.

Description

Fires when a change has been made to either a HookHelper, GlobeHookHelper or SceneHookHelper.

In a command implementation using the HookHelper, use the event to re-synch any member variables storing the IHookHelper::ActiveView, IHookHelper::FocusMap, IHookHelper::PageLayout or IHookHelper::OperationStack and to re-synch any event listeners (for example, if listening to IActiveViewEvents).

OnHookUpdated will fire in response to the following in an ArcGIS Engine application:

 OnHookUpdated will fire in response to the following in the ArcMap application:

In a command implmentation using the GlobeHookHelper, use the event to re-synch any member variables storing the IGlobeHookHelper::Hook, IGlobeHookHelper::ActiveViewer, IGlobeHookHelper::Camera, IGlobeHookHelper::Globe or IGlobeHookHelper::GlobeDisplay and to re-synch any event listeners (for example, if listening to IActiveViewEvents).

OnHookUpdated will fire in response to the following in an ArcGIS Engine application:

OnHookUpdated will fire in response to the following in the ArcGlobe application:

In a command implementation using the SceneHookHelper, use the event to re-synch any member variables storing the ISceneHookHelper::Hook, ISceneHookHelper::ActiveViewer, ISceneHookHelper::Camera, ISceneHookHelper::Scene, ISceneHookHelper::SceneGraph any event listeners (for example, if listening to IActiveViewEvents ).

OnHookUpdated will fire in response to the following in an ArcGIS Engine application:

OnHookUpdated will fire in response to the following in the ArcScene application:

Remarks

The following are recommended when using the HookHelper, GlobeHookHelper or SceneHookHelper in cutsom commands:

See Also

IHookHelperEvents Interface