ArcObjects Library Reference (Controls)  

IMapControlEvents2 Interface

Provides access to events that occur with interaction to the MapControl.

Product Availability

Available with ArcGIS Engine.

Description

This is the main events interface for the MapControl. Generally there is no need to explicitly set event handlers, as most development environments will automatically provide event handlers.

Members

Description
Event OnAfterDraw Fires after the Map draws a specified view phase.
Event OnAfterScreenDraw Fires after the Map contained by the MapControl has finished drawing.
Event OnBeforeScreenDraw Fires before the Map contained by the MapControl starts to draw.
Event OnDoubleClick Fires when the user presses and releases the mouse button twice in quick succession.
Event OnExtentUpdated Fires after the extent (visible bounds) of the MapControl is changed.
Event OnFullExtentUpdated Fires after the full extent (bounds) of the MapControl has changed.
Event OnKeyDown Fires after a key is pressed on the keyboard.
Event OnKeyUp Fires after a pressed key is released.
Event OnMapReplaced Fires after the Map contained by the MapControl has been replaced.
Event OnMouseDown Fires when the user presses any mouse button while over the MapControl.
Event OnMouseMove Fires when the user moves the mouse over the MapControl.
Event OnMouseUp Fires when the user releases a mouse button while over the MapControl.
Event OnOleDrop Fires when an OLE drop action occurs on the MapControl.
Event OnSelectionChanged Fires when the current selection changes.
Event OnViewRefreshed Fires when the view is refreshed before drawing occurs.

CoClasses that implement IMapControlEvents2

CoClasses and Classes Description
MapControl Esri MapControl
MapControlEvents2Listener (esriSystemUtility) Helper coclass to provide IMapControlEvents2 support to the C++ API.