Sign in to follow this  

Force windows controls to render offscreen

This topic is 3307 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi. I would like to render a flash active x control off screen, 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 managed 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!

Share this post


Link to post
Share on other sites
You might need to change the style of the window (ie. WS_CLIPSIBLINGS, WS_CLIPCHILDREN). Check out the MSDN entries for SetWindowLongPtr and SetWindowPos and google "changing window style" for additional info.

Share this post


Link to post
Share on other sites
The IShockwaveFlash is a windowless OLE control.
you should implement a OLE container and put it in, so the flash control is hide, then you can draw it by grab its DC

Share this post


Link to post
Share on other sites

This topic is 3307 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this