CAnimateCtrl::Play

Call this function to play an AVI clip in an animation control.

BOOL Play(
   UINT nFrom,
   UINT nTo,
   UINT nRep 
);

Parameters

  • nFrom
    Zero-based index of the frame where playing begins. Value must be less than 65,536. A value of 0 means begin with the first frame in the AVI clip.

  • nTo
    Zero-based index of the frame where playing ends. Value must be less than 65,536. A value of – 1 means end with the last frame in the AVI clip.

  • nRep
    Number of times to replay the AVI clip. A value of – 1 means replay the file indefinitely.

Return Value

Nonzero if successful; otherwise zero.

Remarks

The animation control will play the clip in the background while your thread continues executing. If the animation control has ACS_TRANSPARENT style, the AVI clip will be played using a transparent background rather than the background color specified in the animation clip.

Example

See the example for CAnimateCtrl::CAnimateCtrl.

Requirements

Header: afxcmn.h

See Also

Concepts

CAnimateCtrl Class

CAnimateCtrl Members

Hierarchy Chart

CAnimateCtrl::Open

CAnimateCtrl::Stop

CAnimateCtrl::Seek

CAnimateCtrl::Create