Contents Index Topic Contents | ||
Previous Topic: Animate_Open Next Topic: Animate_Play |
Animate_OpenEx
BOOL Animate_OpenEx( HWND hwnd, HINSTANCE hinst, LPSTR lpszName );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.
- Returns nonzero if successful, or zero otherwise.
- hwnd
- Handle to the animation control.
- hinst
- Instance handle to the module that the resource should be loaded from. If this value is NULL, the resource is loaded from the module that created 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 the AVI resource from the module specified by hinst.
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_OpenEx macro is defined in Commctrl.h.
Version 4.71
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.