Click to See Complete Forum and Search --> : Programming MCI


fwehlin
May 9th, 1999, 11:02 PM
Hi,

I´m trying to figure out how to use the MCI. Using the cdaudio I think was
fairly easy and now I´m trying to get it to work on a compound device as
"mpegvideo". I can get the device to open and load a file and even play it.
But the defaultwindow created is as small as possible and positioned in the
top left corner, i have to drag it´s edges to get it to normal size. Where
do I set this. I have tried different Structs like MCI_DGV_WINDOW_PARMS,
MCI_DGV_RECT_PARMS but I haven´t been able to figure it out (Nothing works).

Also I´d like to put the movie on a window that I have created, but this
just wont happen. I have tried setting the parentmember of
MCI_DGV_OPEN_PARMS to my windows handle, but then when trying it creates
both windows, my window and the default window.

Is there anyone who can help me on the right track here?

I know that the mediaplayer ocx is best to use, but I´d really like to
understand this so I can use it on other devices.

Frederik