Animation Control

This section contains information about the programming elements used with animation controls.

Overviews

Topic Contents
About Animation Controls An animation control is a window that displays an Audio-Video Interleaved (AVI) clip. An AVI clip is a series of bitmap frames like a movie. Animation controls can only display AVI clips that do not contain audio.
Using Animation Controls This section gives implementation details and example code for animation controls.

Macros

Topic Contents
Animate_Close Closes an AVI clip. You can use this macro or send the ACM_OPEN message explicitly, passing in NULL parameters.
Animate_Create Creates an animation control. Animate_Create calls the CreateWindow function to create the animation control.
Animate_IsPlaying Checks to see if an AVI clip is playing. You can use this macro or send an ACM_ISPLAYING message.
Animate_Open Opens an AVI clip and displays its first frame in an animation control. You can use this macro or send the ACM_OPEN message explicitly.
Animate_OpenEx Opens an AVI clip from a resource in a specified module and displays its first frame in an animation control. You can use this macro or send the ACM_OPEN message explicitly.
Animate_Play Plays an AVI clip in an animation control. The control plays the clip in the background while the thread continues executing. You can use this macro or send the ACM_PLAY message explicitly.
Animate_Seek Directs an animation control to display a particular frame of an AVI clip. The control displays the clip in the background while the thread continues executing. You can use this macro or send the ACM_PLAY message explicitly.
Animate_Stop Stops playing an AVI clip in an animation control. You can use this macro or send the ACM_STOP message explicitly.

Messages

Topic Contents
ACM_ISPLAYING Checks whether an AVI clip is playing. You can send this message explicitly or use the Animate_IsPlaying macro.
ACM_OPEN Opens an AVI clip and displays its first frame in an animation control. You can send this message explicitly or use the Animate_Open or Animate_OpenEx macro.
ACM_PLAY 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_STOP Stops playing an AVI clip in an animation control. You can send this message explicitly or by using the Animate_Stop macro.

Notifications

Topic Contents
ACN_START Notifies an animation control's parent window that the associated AVI clip has started playing. This notification code is sent in the form of a WM_COMMAND message.
ACN_STOP Notifies the parent window of an animation control that the associated AVI clip has stopped playing. This notification code is sent in the form of a WM_COMMAND message.

Constants

Topic Contents
Animation Control Styles This section lists the window styles used with animation controls.