Click to See Complete Forum and Search --> : Force windows controls to render offscreen


BlackDragon777
November 17th, 2008, 08:41 AM
Hi. I would like to render a flash active x control offscreen, take its texture and then render it to a quad. My screen size is 800x600.

Obviously I don't want the flash control to be on the screen where the user can see it. I just want to take its texture and texture it to a polygon.

I have manged to grab the texture of the flash control however it only works when I position the control in the viewable area of the window. If I move it off screen, say (800,0), the image that is returned is a black image.

I am thinking that windows automatically clips these controls if they are not in the viewable area of a screen which is normally a good thing but in my case is causing problems for me.

Do any of you winapi experts know how to prevent windows from clipping controls that are being rendered off screen? Thanks in advance!

zerver
November 18th, 2008, 08:18 AM
Sorry, but I'm afraid that is not possible. Offscreen is "void" area. There is nothing there. It's "by design" - the way Windows works.

I asked the same question long ago in the main C++ forum and this was the answer I got from highly experienced gurus.

Marc G
November 18th, 2008, 11:59 AM
Did you try the PrintWindow (http://msdn.microsoft.com/en-us/library/ms535695.aspx) function? If it works depends on how the flash control is implemented though...