Sign in to follow this  

How to use DirectX to render Windowless ActiveX Control

This topic is 2042 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

I want to render video by DirectX, but video should not be on top of HTML elements.
So I try to render video in windowless active control by using DirectX. Windowless control callback function include parameter DC and Area RECT, I render image in Area RECT by DirectX. But it does not work as what I hope to. The image is shown in the ActiveX,and disappear immediately. It seems like the parameter DC is memDC ,and IE will copy it to windowless area after the callback function, so the image rendered by DirectX is covered by DC. If I constantly render image by DirectX not only in callback function but also in timer, the HTML elements which has overlap with ActiveX area will be covered. e.g. HTML Div. (The reason why I use windowless mode ActiveX is because I hope HTML elements can be on top of ActiveX. Window mode ActiveX is always topmost and will cover my HTML elements, which is not acceptable, that’s why I did not use Window mode ActiveX)
BTW ,Chreom/Firefox have same issue. and dont know how flash to implement it.
Anyone help me, any clues and suggesion , Thanks.

Share this post


Link to post
Share on other sites
I can use 3 solution to implement it .
1. Use D2D, but XP don't support it
2. Render video in backbuffer surface, Get this surface DC then BitBlt to callback DC of Browser. By demo ,performance is not good
3. GDI

Have other solution with better performance? Edited by vagou

Share this post


Link to post
Share on other sites

This topic is 2042 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