Animate_OpenAnimate_Open*
*



Contents  *



Index  *Topic Contents
*Previous Topic: Animate_Create
*Next Topic: Animate_OpenEx

Animate_Open


BOOL Animate_Open(
    HWND hwnd, 
    LPSTR lpszName
);

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.

hwnd
Handle to the animation control.
lpszName
Address of a buffer that contains the path of the AVI file or the name of an AVI resource. Alternatively, this parameter can consist of the AVI resource identifier in the low-order word and zero in the high-order word. To create this value, use the MAKEINTRESOURCE macro. The control loads an AVI resource from the module specified by the instance handle passed to the CreateWindow function, the Animate_Create macro, or the dialog box creation function that created the control.

The AVI file or resource specified by lpszName must not contain audio.

If this parameter is NULL, the system closes the AVI file that was previously opened for the specified animation control, if any.

You can only open silent AVI clips. ACM_OPEN and Animate_Open will fail if lpszSource specifies an AVI clip that contains sound.

You can use Animate_Close to close an AVI file or AVI resource that was previously opened for the specified animation control.

The Animate_Open macro is defined in Commctrl.h.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.