Click here to Skip to main content
15,867,835 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 283.9K   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

     
    QuestionNeed Help Pin
    Member 1234809726-Feb-16 18:29
    Member 1234809726-Feb-16 18:29 
    AnswerRe: Need Help Pin
    ninpo11-Dec-18 7:11
    ninpo11-Dec-18 7:11 
    NewsHi Yi Ren ! There is a very littile 'bug' in this demo project, Pin
    David_LoveCpp22-Sep-09 16:19
    David_LoveCpp22-Sep-09 16:19 
    Generalhi,would you like answer me? I think it's important Pin
    qinmingju60922-May-08 3:52
    qinmingju60922-May-08 3:52 
    GeneralOther Image format Pin
    sugar722-Oct-07 1:47
    sugar722-Oct-07 1:47 
    GeneralOther image formats Pin
    rindam25-Sep-07 19:20
    rindam25-Sep-07 19:20 
    Generalother image formats Pin
    muff1nt0p18-Jun-07 11:40
    muff1nt0p18-Jun-07 11:40 
    Generalgdpi not initialized Pin
    gkbharadwaj6-Apr-07 0:19
    gkbharadwaj6-Apr-07 0:19 
    GeneralRe: gdpi not initialized Pin
    Guillaume MICHEL17-Feb-11 5:29
    Guillaume MICHEL17-Feb-11 5:29 
    GeneralRe: gdpi not initialized Pin
    Member 1095597918-Sep-19 15:28
    Member 1095597918-Sep-19 15:28 
    GeneralOther Image Formats Pin
    jerryshirley8-Oct-06 16:52
    jerryshirley8-Oct-06 16:52 
    GeneralRe: Other Image Formats Pin
    Christian Graus8-Oct-06 17:25
    protectorChristian Graus8-Oct-06 17:25 
    GeneralMore contrast for the thumbnail images Pin
    bioan12-Sep-06 20:54
    professionalbioan12-Sep-06 20:54 
    Generalother image formats Pin
    jamesw200319-Jul-06 8:51
    jamesw200319-Jul-06 8:51 
    GeneralRe: other image formats Pin
    yren20-Jul-06 16:24
    yren20-Jul-06 16:24 
    QuestionRe: other image formats Pin
    jamesw200325-Jul-06 4:07
    jamesw200325-Jul-06 4:07 
    GeneralRe: other image formats Pin
    NitaJou29-Aug-06 19:53
    NitaJou29-Aug-06 19:53 
    GeneralRe: other image formats Pin
    kongxin28-Nov-06 15:44
    kongxin28-Nov-06 15:44 
    QuestionHow to remove the name of the file Pin
    alwittta28-Apr-06 20:34
    alwittta28-Apr-06 20:34 
    AnswerRe: How to remove the name of the file Pin
    yren29-Apr-06 18:29
    yren29-Apr-06 18:29 
    GeneralCode update is coming Pin
    yren1-Apr-06 16:58
    yren1-Apr-06 16:58 
    GeneralRe: Code update is coming Pin
    lovelr4-Jul-08 4:48
    lovelr4-Jul-08 4:48 
    GeneralRe: Code update is coming Pin
    hypcsky8-Aug-10 20:11
    hypcsky8-Aug-10 20:11 
    GeneralL/R mouce Pin
    leven31-Mar-06 8:41
    leven31-Mar-06 8:41 
    GeneralRe: L/R mouce Pin
    yren1-Apr-06 16:46
    yren1-Apr-06 16:46 

    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.