The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: kemicza on April 24, 2005, 01:29:02 PM

Title: Playing AVI
Post by: kemicza on April 24, 2005, 01:29:02 PM
Hey, my first post  :cheekygreen:

I want to play an AVI clip but that it doesn't repeat. I can just make it work with repeating.

Invoke SendDlgItemMessage,hWin,IDC_ANI1,ACM_PLAY,1,IDR_AVI

What am I doing wrong?

Thanks
Title: Re: Playing AVI
Post by: pbrennick on April 24, 2005, 07:20:21 PM
kemicza,

Try the following:

    invoke  Animate_Play, hWin, 0, -1, 0

Where:
    hWin - Handle to the animation control in which to play the AVI clip
         0 - start from the beginning
        -1 - play to the end
         0 - do not replay


Paul
Title: Re: Playing AVI
Post by: pbrennick on April 24, 2005, 07:40:13 PM
kemicza,
I also found these:


;       Play a file
        invoke SendDlgItemMessage,hWin,IDC_ANI1,ACM_OPEN,0,offset szAvi


or


;       Play a resource
        invoke SendDlgItemMessage,hWin,IDC_ANI1,ACM_OPEN,0,IDR_AVI


Paul
Title: Re: Playing AVI
Post by: kemicza on May 15, 2005, 10:18:31 PM
Sorry for replying so late, the post got moved and my friend told me how to find it, etc..
Well thanks for the reply man ;)  :U (btw this is my SECOND post  :cheekygreen:)
Title: Re: Playing AVI
Post by: Farabi on May 20, 2005, 02:46:53 PM
Hai, how to play AVI movie on another screen? Just as simple as use bitblt function? what function and from what .dll I must use?