Click here to Skip to main content
12,255,247 members (57,560 online)
Click here to Skip to main content
Add your own
alternative version

Stats

244.1K views
3.6K downloads
97 bookmarked
Posted

Using thumbnail images in a list control

, 21 Jul 2006
Rate this:
Please Sign up or sign in to vote.
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

    Share

    About the Author

    Yi Ren
    Web Developer
    United States United States
    No Biography provided

    You may also be interested in...

    Comments and Discussions

     
    QuestionNeed Help Pin
    Member 1234809726-Feb-16 18:29
    memberMember 1234809726-Feb-16 18:29 
    NewsHi Yi Ren ! There is a very littile 'bug' in this demo project, Pin
    David_LoveCpp22-Sep-09 16:19
    memberDavid_LoveCpp22-Sep-09 16:19 
    Generalhi,would you like answer me? I think it's important Pin
    qinmingju60922-May-08 3:52
    memberqinmingju60922-May-08 3:52 
    GeneralOther Image format Pin
    sugar722-Oct-07 1:47
    membersugar722-Oct-07 1:47 
    GeneralOther image formats Pin
    rindam25-Sep-07 19:20
    memberrindam25-Sep-07 19:20 
    Generalother image formats Pin
    muff1nt0p18-Jun-07 11:40
    membermuff1nt0p18-Jun-07 11:40 
    Generalgdpi not initialized Pin
    gkbharadwaj6-Apr-07 0:19
    membergkbharadwaj6-Apr-07 0:19 
    GeneralRe: gdpi not initialized Pin
    Guillaume MICHEL17-Feb-11 5:29
    memberGuillaume MICHEL17-Feb-11 5:29 
    GeneralOther Image Formats Pin
    jerryshirley8-Oct-06 16:52
    memberjerryshirley8-Oct-06 16:52 
    GeneralRe: Other Image Formats Pin
    Christian Graus8-Oct-06 17:25
    staffChristian Graus8-Oct-06 17:25 
    GeneralMore contrast for the thumbnail images Pin
    Ionut Codrut12-Sep-06 20:54
    memberIonut Codrut12-Sep-06 20:54 
    Generalother image formats Pin
    jamesw200319-Jul-06 8:51
    memberjamesw200319-Jul-06 8:51 
    GeneralRe: other image formats Pin
    yren20-Jul-06 16:24
    memberyren20-Jul-06 16:24 
    QuestionRe: other image formats Pin
    jamesw200325-Jul-06 4:07
    memberjamesw200325-Jul-06 4:07 
    GeneralRe: other image formats Pin
    NitaJou29-Aug-06 19:53
    memberNitaJou29-Aug-06 19:53 
    GeneralRe: other image formats Pin
    kongxin28-Nov-06 15:44
    memberkongxin28-Nov-06 15:44 
    QuestionHow to remove the name of the file Pin
    alwittta28-Apr-06 20:34
    memberalwittta28-Apr-06 20:34 
    AnswerRe: How to remove the name of the file Pin
    yren29-Apr-06 18:29
    memberyren29-Apr-06 18:29 
    GeneralCode update is coming Pin
    yren1-Apr-06 16:58
    memberyren1-Apr-06 16:58 
    GeneralRe: Code update is coming Pin
    lovelr4-Jul-08 4:48
    memberlovelr4-Jul-08 4:48 
    GeneralRe: Code update is coming Pin
    hypcsky8-Aug-10 20:11
    memberhypcsky8-Aug-10 20:11 
    GeneralL/R mouce Pin
    leven31-Mar-06 8:41
    memberleven31-Mar-06 8:41 
    GeneralRe: L/R mouce Pin
    yren1-Apr-06 16:46
    memberyren1-Apr-06 16:46 
    GeneralDo Windows have API for Bitmap reading Pin
    King Coffee14-Jan-05 19:08
    memberKing Coffee14-Jan-05 19:08 
    GeneralRe: Do Windows have API for Bitmap reading Pin
    yren1-Apr-06 16:45
    memberyren1-Apr-06 16:45 
    Questioncould you please send me the code for further study? Pin
    sjice8020-Jul-04 19:50
    membersjice8020-Jul-04 19:50 
    GeneralSize of image in the list control Pin
    kzseattle11-Dec-03 23:10
    memberkzseattle11-Dec-03 23:10 
    GeneralRe: Size of image in the list control Pin
    yren1-Apr-06 16:21
    memberyren1-Apr-06 16:21 
    GeneralRe: Size of image in the list control Pin
    ji mehta7-Apr-06 1:14
    memberji mehta7-Apr-06 1:14 
    Generalwould u help me to load another format image Pin
    yaya24-Jun-03 23:56
    memberyaya24-Jun-03 23:56 
    GeneralRe: would u help me to load another format image Pin
    yren1-Apr-06 16:19
    memberyren1-Apr-06 16:19 
    GeneralRe: would u help me to load another format image Pin
    figofuture14-Apr-06 22:10
    memberfigofuture14-Apr-06 22:10 
    GeneralRe: would u help me to load another format image Pin
    Anderson Luís7-Jul-06 8:29
    memberAnderson Luís7-Jul-06 8:29 
    QuestionPicture in a ListCtrl ?? Pin
    Cris26-May-03 10:08
    memberCris26-May-03 10:08 
    AnswerRe: Picture in a ListCtrl ?? Pin
    yren26-Jul-03 16:29
    memberyren26-Jul-03 16:29 
    QuestionHow to add other image format to this thumbnail list Pin
    Ryan Du24-Mar-03 3:41
    memberRyan Du24-Mar-03 3:41 
    AnswerRe: How to add other image format to this thumbnail list Pin
    yren8-Apr-03 13:44
    memberyren8-Apr-03 13:44 
    GeneralRe: How to add other image format to this thumbnail list Pin
    cweng200310-Apr-03 5:45
    membercweng200310-Apr-03 5:45 
    GeneralRe: How to add other image format to this thumbnail list Pin
    yren10-Apr-03 14:25
    memberyren10-Apr-03 14:25 
    GeneralRe: How to add other image format to this thumbnail list Pin
    Anoynmous12-Apr-03 7:08
    sussAnoynmous12-Apr-03 7:08 
    GeneralRe: How to add other image format to this thumbnail list Pin
    yren12-Apr-03 11:02
    memberyren12-Apr-03 11:02 
    GeneralRe: How to add other image format to this thumbnail list Pin
    Mortis15-Apr-03 5:27
    memberMortis15-Apr-03 5:27 
    GeneralRe: How to add other image format to this thumbnail list Pin
    yren15-Apr-03 14:28
    memberyren15-Apr-03 14:28 
    GeneralRe: How to add other image format to this thumbnail list Pin
    jaejin19-May-03 14:07
    sussjaejin19-May-03 14:07 
    GeneralRe: How to add other image format to this thumbnail list Pin
    yren20-May-03 13:58
    memberyren20-May-03 13:58 
    GeneralRe: How to add other image format to this thumbnail list Pin
    sfsean@yahoo.com26-May-03 16:29
    susssfsean@yahoo.com26-May-03 16:29 
    GeneralRe: How to add other image format to this thumbnail list Pin
    ITBC6-Jun-03 1:12
    memberITBC6-Jun-03 1:12 
    GeneralRe: How to add other image format to this thumbnail list Pin
    blueh18-Sep-03 2:37
    memberblueh18-Sep-03 2:37 
    GeneralRe: How to add other image format to this thumbnail list Pin
    yren18-Sep-03 2:45
    memberyren18-Sep-03 2:45 
    GeneralRe: How to add other image format to this thumbnail list Pin
    Francisco Lopez5-Nov-03 0:34
    memberFrancisco Lopez5-Nov-03 0:34 

    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.

    | Advertise | Privacy | Terms of Use | Mobile
    Web01 | 2.8.160426.1 | Last Updated 21 Jul 2006
    Article Copyright 2001 by Yi Ren
    Everything else Copyright © CodeProject, 1999-2016
    Layout: fixed | fluid