Visual C++ and MFC Programming 2nd Edition

(Martin Jones) #1

Chapter 16: Text-Based Controls Visual C++ and MFC Fundamentals



  1. Close the dialog and return to MSVC


15.2 Animation Controls.....................................................................................


15.2.1..Overview...............................................................................................


An animation is a series of pictures put together to produce a video clip. It can be used to
display the evolution of an ongoing task to the user. This makes such tasks less boring.
For example, making a copy of a CD is usually a long process that can take minutes. To
let the user know when such a task is being performed, you can display an animation.

Microsoft Windows provides a few small animations you can use for your applications.
These animations, just like many other resources of Visual Studio or Visual C++, are not
installed by default. During setup, you can install them if necessary. If you forgot to
install them and you need them, run Setup again and select the Add/Remove button. Then
click the check box of the Options checked list box. If you want only the videos or some
resources, click the Graphics items and click the Change Options, and select the items
you want. You can then click Continue to install the videos.

If you need an animation other than those supplied, you may have to create it. Visual
C++ is not the place to create an animation. You may need a graphics software to do this.

To use a regular animation, the video must be a standard Microsoft Windows audio/video
format: Audio Video Interleaved or AVI. Therefore, it must be a file with the avi
extension. If the file has both audio and video, only the video part would be considered.
Free download pdf