Поделиться через


Animation Controls Styles (Windows Embedded CE 6.0)

1/6/2010

The following table shows the animation control styles or constants, and a description of the purpose for each.

Control Styles Description

ACS_AUTOPLAY

Setting this control style starts playing the animation as soon as the AVI clip is opened.

ACS_CENTER

Setting this control style centers the animation in the animation control's window.

ACS_TIMER

Setting this control style causes the control to play the clip without creating a thread. Internally the control uses a Win32 timer to synchronize playback.

This control style does not support the use of a thread to play the AVI file.

ACS_TRANSPARENT

Setting this control style enables you to match an animation's background color to that of the underlying window, creating a "transparent" background. The control will send a WM_CTLCOLORSTATIC message to its parent. Use SetBkColor to set the background color for the device context to an appropriate value. The control interprets the upper-left pixel of the first frame as the animation's default background color. It will remap all pixels with that color to the value you supplied in response to WM_CTLCOLORSTATIC.

See Also

Reference

Animation Controls Reference