An “image list” is a collection of same-sized images, each of which can be referred to by its zero-based index. Image lists are used to efficiently manage large sets of icons or bitmaps. All images in an image list are contained in a single, wide bitmap in screen device format. An image list may also include a monochrome bitmap that contains masks used to draw images transparently (icon style). The Microsoft Win32 application programming interface (API) provides image list functions that enable you to draw images, create and destroy image lists, add and remove images, replace images, merge images, and drag images.
The CImageList class provides the functionality of the Windows common image list control. This control (and therefore the CImageList class) is available only to programs running under Windows 95 and Windows NT version 3.51 and later.
For more information on using CImageList, see Control Topics and Using CImageList in the Visual C++ Programmer’s Guide.
#include <afxcmn.h>