Question: Need callbacks when fvw is panning or zooming
I am working a plugin using ILayerEditor3 that draw graphis onto to DC directly. I like to customize and speed up the drawing code when fvw is in panning or zooming. Are there callbacks or API that I can use?
Environment
| FalconView Version: | FalconView 4.0.1 |
| Interface: | ILayerEditor |
| Language: | Visual C++ |
(EDIT ICON)
-- LarryDavis - 19 Sep 2008
Answer
I think this is what you are looking for...
From the ActiveMapProj object passed to OnDraw you can obtain the MapRenderingEngineCallback.
This object has a method on it to detect if the draw was canceled (panning, scaling, or ESC key pressed).
We use this internally to break out of long drawing operations (like vmap or contour lines) when the map is being constantly redrawn during a PAN or multiple scale events. (There is no need to finish a draw if you know it is going to be throw away immediately.)
