Поделиться через


Animate_Play (Windows Embedded CE 6.0)

1/6/2010

This macro plays an AVI clip in an animation control. You can use this macro or send the ACM_PLAY message explicitly.

Syntax

BOOL Animate_Play(
   HWND hwndAnim,
   UINT wFrom,
   UINT wTo,
   UINT cRepeat
);

Parameters

  • hwndAnim
    Handle to the animation control in which to play the AVI clip.
  • wFrom
    Zero-based index of the frame where playing begins. The value must be less than 65,536. A value of zero means begin with the first frame in the AVI clip.
  • wTo
    Zero-based index of the frame where playing ends. The value must be less than 65,536. A value of -1 means end with the last frame in the AVI clip.
  • cRepeat
    Number of times to replay the AVI clip. A value of -1 means replay the clip indefinitely.

Return Value

Returns nonzero if successful, or zero otherwise**.**

Remarks

You can use Animate_Seek to direct the animation control to display a particular frame of the AVI clip.

Requirements

Header commctrl.h
Windows Embedded CE Windows CE 5.0

See Also

Reference

Animation Controls Macros