AVI - Animated button

You can see this effect on some multimedia programs: as you drag mouse over
the button, the button will animate.
The whole thing is in CAniButton class derived from CButton.

Use CAniButton as a normal CButton (Style must be Owner draw)
On Init dialog simply use LoadAVI( AVI_ID ) where AVI_ID is ID of AVI file
loaded in resources.

The button will resize to match the size of AVI animation.
The first frame of animation will be used as a static look.
Be careful when you create your own AVI file. Not everything could be played !

Here is what is written for Animated control in MSDN:

Animation controls can play only simple AVI clips. Specifically, the clips
to be played by an animation control must meet the following requirements:
-There must be exactly one video stream and it must have at least one frame.
-There can be at most two streams in the file (typically the other stream,
if present, is an audio stream, although the animation control ignores
audio information).
-The clip must either be uncompressed or compressed with RLE8 compression.
-No palette changes are allowed in the video stream.

How to fix problem with clicking

As you probably noticed if you click this button you termiante the aplication. If you change this to sth. else for example: after you clicked you show MessageBox you can notice tha there is problem with this animation on the button.
I fixed the problem in this way: add member function to CAniButton and name it for example StopAnimation():
void CAniButton::stopAnimation()
{
m_AnimateCtrl.Stop(); //stop the animation
m_AnimateCtrl.Seek(0);//set the first frame to be dispalyed on button
m_bPlaying = FALSE;
}

Top White Papers and Webcasts

The 2014 State of DevOps Report — based on a survey of 9,200+ people in IT operations, software development and technology management roles in 110 countries — reveals:
Companies with high-performing IT organizations are twice as likely to exceed their profitability, market share and productivity goals.
IT performance improves with DevOps maturity, and strongly correlates with well-known DevOps practices.
Job satisfaction is the No. 1 predictor of performance against organizational …