65.9K
CodeProject is changing. Read more.
Home

Using thumbnail images in a list control

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.23/5 (23 votes)

Feb 10, 2001

viewsIcon

291306

downloadIcon

4776

How to use thumbnail images in a list control

  • Download demo project - 19.6 Kb

    Sample Image - Thumbnail.jpg

    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