HeaderPane
Main

SftPicture2 Documentation

Share Link
Print

Sft_SetPictureAnimate

Store the HWND of a Microsoft Animation control playing an AVI clip in a SFT_PICTURE as a SFT_PICTURE_AVI slot.

C

void Sft_SetPictureAnimate(LPSFT_PICTURE lpPicture, HWND hwndAnim);

Parameters

lpPicture

Pointer to a SFT_PICTURE. Must not be NULL.

hwndAnim

HWND of a Microsoft Animation control (ANIMATE_CLASS from commctrl.h). NULL leaves the slot empty.

Comments

Sft_SetPictureAnimate calls Sft_ClearPicture internally before assigning the new animation HWND.

The animation control is created by the application using Animate_Create or by placing an Animate Control in a dialog template. The application loads the AVI clip (Animate_Open) and starts playback (Animate_Play); the host control simply paints the animation control inside the slot.

Per-product control fields (e.g. SFTBUTTON_CONTROL.fAVITransparent) often expose options that affect how the animation is composited - check the per-product help.

See Also SftPicture2 | SFT_PICTURE | SFT_PICTURE_AVI | Sft_IsPictureAnimate


Last Updated 05/09/2026 - (email)
© 2026 Softel vdm, Inc.