Animate_Create macro (commctrl.h)

Creates an animation control. Animate_Create calls the CreateWindow function to create the animation control.

Syntax

void Animate_Create(
   hwndP,
   id,
   dwStyle,
   hInstance
);

Parameters

hwndP

Type: HWND

A handle to the parent window.

id

Type: UINT

The child window identifier of the animation control.

dwStyle

Type: DWORD

The window styles. For a list of the animation control style values, see Animation Control Styles.

hInstance

Type: HINSTANCE

A handle to the instance of the module that is creating the animation control.

Return value

None

Remarks

The Animate_Create macro sets the width and height of the animation control to zero if the ACS_CENTER style is specified. If the ACS_CENTER style is not specified, Animate_Create sets the width and height based on the dimensions of a frame in the AVI clip.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header commctrl.h