I have a 3rd party ActiveX control I want to render within other presentation technologies (Direct3D and WPF). To do this, I need the ActiveX to render to a system memory bitmap instead of the screen. I know there is a way to do this, but not sure where to start. I'm not afraid of doing any native method hooking, but I'm not sure where to start. I was thinking BeginPaint(...) might be the hot ticket...
Has anyone done this or seen examples/samples floating around?
BTW, I do not want to do a WM_PRINT type solution. I'd rather this code be reactive, than proactive and forcing the hwnd to repaint.
EDIT:
Both answers were right in my case, so I gave each a +1. I wish to have a lower level solution to be more flexible, but this is good enough at the moment.