Q: How to force a control to draw offscreen
I'm having fun coding my own front end. At the moment it's In the proof of concept phase. More specificly, I'm determining if I can sufficiently control MS MapPoint to do what I want.
I one thing I realy want to do is rotate the map (2D & 3D). To do this, I just let map point do it's normal rendering, then grab the control's screen buffer to a bitmat and then manipulate the bitmap. My problem is that when ever the MP control is not directly visible on the screen (or partialy visible), it clips it's rending and I can't grab the whole map (as it is not completely rendered). Now this is normaly a desired behaviour for applications, but it prevents me from doing what I want to do: have MapPoint draw the map and then let me manipulate it's output for final rendering.
So the question is: does any one here have a clue as to how I could force MapPoint to render offscreen and then have my code access that raster? Dont care if it's not nice, just that it works. One thing I'm thingking is binding the control's window DC to a DirectDraw7 surface. But not sure that it will work.