Using thumbnail images in a list control






4.23/5 (23 votes)
Feb 10, 2001

291306

4776
How to use thumbnail images in a list control
Introduction
The purpose of this article is to show you how to display thumbnail images in a list control.
The demo project is very straightforward:
It goes through a directory that the user specified to search for all the bitmap files, and stores their names in a dynamic vector, “m_VectorImageNames”. On clicking the “Load” button, It draws the thumbnails of the bitmaps in the list control by calling the function “DrawThumbnails ()”. It then draws the selected thumbnail image to fit into the image display area.
Acknowledgements
- Encapsulated Dib API - by Jorge Lodos
- Class for Browsing shell namespace with your own dialog - by Selom Ofori