MapControlEvents.cpp
// Copyright 2010 ESRI // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // You may freely redistribute and use this sample code, with or // without modification, provided you include the original copyright // notice and use restrictions. // // See the use restrictions. // #include "MapControlEvents.h" void MapControlEvents::OnAfterDraw(VARIANT display, long viewDrawPhase) { if (g_ipCurrentExtent == 0) return; // If the foreground phase has drawn, viewDrawPhase will be 32 esriViewDrawPhase drawPhase = esriViewDrawPhase(viewDrawPhase); if (drawPhase == esriViewForeground) { // Draw the shape on the MapControl CComVariant varSymbol = CComVariant(g_ipFillSymbol); g_ipMapControl->DrawShape((IGeometryPtr) g_ipCurrentExtent, &varSymbol); } } void MapControlEvents::OnAfterScreenDraw(long hdc) { } void MapControlEvents::OnBeforeScreenDraw(long hdc) { } void MapControlEvents::OnDoubleClick(long button, long shift, long x, long y, double mapX, double mapY) { } void MapControlEvents::OnExtentUpdated(VARIANT displayTransformation, VARIANT_BOOL sizeChanged, VARIANT newEnvelope) { } void MapControlEvents::OnFullExtentUpdated(VARIANT displayTransformation, VARIANT newEnvelope) { } void MapControlEvents::OnKeyDown(long keyCode, long shift) { } void MapControlEvents::OnKeyUp(long keyCode, long shift) { } void MapControlEvents::OnMapReplaced(VARIANT newMap) { } void MapControlEvents::OnMouseDown(long button, long shift, long x, long y, double mapX, double mapY) { } void MapControlEvents::OnMouseMove(long button, long shift, long x, long y, double mapX, double mapY) { } void MapControlEvents::OnMouseUp(long button, long shift, long x, long y, double mapX, double mapY) { } void MapControlEvents::OnOleDrop(esriControlsDropAction dropAction, VARIANT dataObjectHelper, long* effect, long button, long shift, long x, long y) { } void MapControlEvents::OnSelectionChanged() { } void MapControlEvents::OnViewRefreshed(VARIANT ActiveView, long viewDrawPhase, VARIANT layerOrElement, VARIANT envelope) { }