Off screen drawing with wx.MemoryDC question

With your own window, this is not terribly difficult. But when you
start involving custom controls and objects, like IEHtmlWindow, the job
becomes impossible. The problem is that the IE control repaints itself
in its paint handler, using the BeginPaint/EndPaint APIs, and there is
no way to override those to make it draw into a memory DC.

···

On Tue, 10 Oct 2006 13:06:20 +0100, "Ben Harling" <benjamin.harling@futurenet.co.uk> wrote:

Can anyone explain to me how to draw a widget off-screen, without
displaying it at all? Specifically, I am trying to draw an
IEHtmlWindow widget offscreen, and blit it to an image object, which
will be caught and displayed in another application. I have
sucessfully used a MemoryDC to save an image of the widget in action
when it is on-screen, but really I'd like to prevent wx from actually
displaying the widget at all, rather just render to the off-screen buffer.

--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.