Using Thumbnail Images in a List Control

Introduction:

This 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 user specified to search for all the bitmap files, and store 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 ()”.
  • Draw the selected thumbnail image to fit into the image display area.

Acknowledgements:

Downloads

Download demo project – 83 KB

More by Author

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends & analysis

Must Read