TransformEvents.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 "TransformEvents.h" HRESULT TransformEvents::BoundsUpdated(IDisplayTransformation* sender) { return E_NOTIMPL; } HRESULT TransformEvents::DeviceFrameUpdated(IDisplayTransformation* sender, VARIANT_BOOL sizeChanged) { return E_NOTIMPL; } HRESULT TransformEvents::ResolutionUpdated(IDisplayTransformation* sender) { return E_NOTIMPL; } HRESULT TransformEvents::RotationUpdated(IDisplayTransformation* sender) { return E_NOTIMPL; } HRESULT TransformEvents::UnitsUpdated(IDisplayTransformation* sender) { return E_NOTIMPL; } HRESULT TransformEvents::VisibleBoundsUpdated(IDisplayTransformation* sender, VARIANT_BOOL sizeChanged) { // Set the extent to the new visible extent sender->get_VisibleBounds(&g_ipCurrentExtent); // Refresh the MapControl's foreground phase HRESULT hr = g_ipMapControl->Refresh(esriViewForeground); return hr; }