The ACM_PLAY message plays an AVI clip in an animation control. The control plays the clip in the background while the thread continues executing. You can send this message explicitly or by using the Animate_Play macro.
ACM_PLAY wParam = (WPARAM) (UINT) cRepeat; lParam = (LPARAM) MAKELONG(wFrom, wTo);
If the operation succeeds, the return value is a nonzero value.
If the operation fails, the return value is zero.
You can use Animate_Seek to direct the animation control to display a particular frame of the AVI clip.
The Animate_Play and Animate_Seek macros are defined in COMMCTRL.H.