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


CAnimateCtrl::Seek

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

BOOL Seek(
   UINT nTo 
);

Параметры

  • 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.

Возвращаемое значение

Nonzero if successful; otherwise zero.

Заметки

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.

Пример

See the example for CAnimateCtrl::CAnimateCtrl.

Требования

Header: afxcmn.h

См. также

Основные понятия

CAnimateCtrl Class

CAnimateCtrl Members

Hierarchy Chart

CAnimateCtrl::Open

CAnimateCtrl::Play

CAnimateCtrl::Create