Share via


CAnimateCtrl::Seek

Call this function to statically display a single frame of your AVI clip.

BOOL Seek( 
   UINT nTo  
);

Parameters

  • nTo
    Zero-based index of the frame to display. Value must be less than 65,536. A value of 0 means display the first frame in the AVI clip. A value of –1 means display the last frame in the AVI clip.

Return Value

Nonzero if successful; otherwise zero.

Remarks

If the animation control has ACS_TRANSPARENT style, the AVI clip will be drawn 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

Reference

CAnimateCtrl Class

Hierarchy Chart

CAnimateCtrl::Open

CAnimateCtrl::Play

CAnimateCtrl::Create