Image Information in Image Lists

CImageList includes a number of functions that retrieve information from an image list. The GetImageInfo member function fills an IMAGEINFO structure with information about a single image, including the handles of the image and mask bitmaps, the number of color planes and bits per pixel, and the bounding rectangle of the image within the image bitmap. You can use this information to directly manipulate the bitmaps for the image.

The GetImageCount member function retrieves the number of images in an image list.

You can create an icon based on an image and mask in an image list by using the ExtractIcon member function. The function returns the handle of the new icon.

See Also

Concepts

Using CImageList

Controls (MFC)