Click here to Skip to main content
15,883,896 members
Articles / Desktop Programming / MFC
Article

Using thumbnail images in a list control

Rate me:
Please Sign up or sign in to vote.
4.23/5 (25 votes)
21 Jul 2006 284.6K   4.7K   102   69
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

  • License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here


    Written By
    Web Developer
    United States United States
    This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

    Comments and Discussions

     
    GeneralRe: Size of image in the list control Pin
    Mehta Jigar7-Apr-06 1:14
    Mehta Jigar7-Apr-06 1:14 
    Generalwould u help me to load another format image Pin
    yaya24-Jun-03 23:56
    yaya24-Jun-03 23:56 
    GeneralRe: would u help me to load another format image Pin
    yren1-Apr-06 16:19
    yren1-Apr-06 16:19 
    GeneralRe: would u help me to load another format image Pin
    figofuture14-Apr-06 22:10
    figofuture14-Apr-06 22:10 
    GeneralRe: would u help me to load another format image Pin
    Anderson Luís7-Jul-06 8:29
    Anderson Luís7-Jul-06 8:29 
    QuestionPicture in a ListCtrl ?? Pin
    Cris26-May-03 10:08
    Cris26-May-03 10:08 
    AnswerRe: Picture in a ListCtrl ?? Pin
    yren26-Jul-03 16:29
    yren26-Jul-03 16:29 
    QuestionHow to add other image format to this thumbnail list Pin
    Ryan Du24-Mar-03 3:41
    Ryan Du24-Mar-03 3:41 
    I want to know how to add the jpeg and other format image file as this thumbnail image list just like windows explorer?

    Ryan
    AnswerRe: How to add other image format to this thumbnail list Pin
    yren8-Apr-03 13:44
    yren8-Apr-03 13:44 
    GeneralRe: How to add other image format to this thumbnail list Pin
    cweng200310-Apr-03 5:45
    cweng200310-Apr-03 5:45 
    GeneralRe: How to add other image format to this thumbnail list Pin
    yren10-Apr-03 14:25
    yren10-Apr-03 14:25 
    GeneralRe: How to add other image format to this thumbnail list Pin
    syojisyn12-Apr-03 7:08
    syojisyn12-Apr-03 7:08 
    GeneralRe: How to add other image format to this thumbnail list Pin
    yren12-Apr-03 11:02
    yren12-Apr-03 11:02 
    GeneralRe: How to add other image format to this thumbnail list Pin
    Mortis15-Apr-03 5:27
    Mortis15-Apr-03 5:27 
    GeneralRe: How to add other image format to this thumbnail list Pin
    yren15-Apr-03 14:28
    yren15-Apr-03 14:28 
    GeneralRe: How to add other image format to this thumbnail list Pin
    jaejin19-May-03 14:07
    jaejin19-May-03 14:07 
    GeneralRe: How to add other image format to this thumbnail list Pin
    yren20-May-03 13:58
    yren20-May-03 13:58 
    GeneralRe: How to add other image format to this thumbnail list Pin
    sfzz26-May-03 16:29
    sfzz26-May-03 16:29 
    GeneralRe: How to add other image format to this thumbnail list Pin
    Member 3406986-Jun-03 1:12
    Member 3406986-Jun-03 1:12 
    GeneralRe: How to add other image format to this thumbnail list Pin
    blueh18-Sep-03 2:37
    blueh18-Sep-03 2:37 
    GeneralRe: How to add other image format to this thumbnail list Pin
    yren18-Sep-03 2:45
    yren18-Sep-03 2:45 
    GeneralRe: How to add other image format to this thumbnail list Pin
    Francisco Lopez5-Nov-03 0:34
    Francisco Lopez5-Nov-03 0:34 
    GeneralRe: How to add other image format to this thumbnail list Pin
    ranu_hai25-Apr-06 18:49
    ranu_hai25-Apr-06 18:49 
    AnswerRe: How to add other image format to this thumbnail list Pin
    华超24-Jul-03 3:39
    华超24-Jul-03 3:39 
    GeneralRe: How to add other image format to this thumbnail list Pin
    geng tong17-Nov-03 15:22
    geng tong17-Nov-03 15:22 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.