ArcObjects Library Reference (Controls)  

IHookHelper.OperationStack Property

Operation stack of hooked control or application used for undo/redo operations.

ERROR: Syntax information about IHookHelper.OperationStack may not be in D:\ArcGIS\DotNet\ESRI.ArcGIS.Controls.dll

[C++]
HRESULT get_OperationStack(
  IOperationStack** ppOperationStack
);
[C++]

Parameters

ppOperationStack [out, retval]

  ppOperationStack is a parameter of type IOperationStack

Product Availability

Available with ArcGIS Engine.

Description

The IOperationStack of the hook passed to the ICommand::OnCreate event. The OperationStack is returned regardless of whether the hook is a ToolbarControl or ArcMap.

The property will return Nothing if the hook is a MapControl or PageLayoutControl that do not have an associated operation stack. If the hook is a ToolbarControl Nothing will be returned if the OperationStack has not been set into the ToolbarControl. A developer normally sets one ControlsOperationStack object into each IToolbarControl::OperationStack used in an application.

If the IToolbarControl::Buddy, IMapControl2::Map or IPageLayoutControl::PageLayout changes a new ControlsOperationStack object will need passing to the IToolbarControl::OperationStack. Use the following events to do this: IToolbarControlEvents::OnBuddyChanged, IMapControlEvents2::OnMapReplaced, IPageLayoutControlEvents::OnPageLayoutReplaced and IPageLayoutControlEvents::OnFocusMapChanged.

Errors Returned

1060 800A0424: The supplied hook is not valid. 

See Also

IHookHelper Interface