I have written a program that uses MM control to display avi's and
mpg's and other video formats onto a form.
This form is translucent, that is you can see the background through
When i run avi's everything works perfectlty, i can see through the
form, see through the avi video even to the background. It's
even my cmd buttons sit on top of the avi and i can use the buttons to
stop, mute and open a new avi etc.
But when i run mpg's or other video formats, 1st the buttons dissopear
behind the video. 2nd and worst of all, the video flickers, and when i
drag the form it destroys the background and leaves a copy of the
For test purposes, i created a button that turns off the alpha
blending (the code that creates the translucentcy) and the mpg stops
flickering and I can drag the form around without destroying the
How can I fix this? I want it to behave like it does with avi's.
I suspect it's a CPU thing, as avi's aren't compressed. But with the
mpg and alpha blending it's all to much for my CPU (Duron 1.1ghz)
Also I read that avi's come with transparency built into the codec,
this may explain why my cmd buttons etc stay visible, but with mpg's
the buttons become obscured by the video.
PLEASE HELP... Damn this program looks real good... I need to fix the
Thanx in advance.