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


Comments

  • Implementing Brightness to this application

    Posted by wencong on 03/15/2004 11:14pm

    hi..anyone have any ideas on how to implement brightness adjustment into this application.. for example : user is able to adjust the brightness of the selected thumbnail image in the picture box. thanks

    • HELP!

      Posted by wencong on 03/17/2004 09:54pm

      some1 who read this comment pls do try to help me...thanks =p

      Reply
    Reply
  • Help

    Posted by Legacy on 02/19/2004 12:00am

    Originally posted by: yves

    When i change this project to VC++ 7.0, it gt an error saying nCount>=0. this error occurs when i press the browse button... Anyone can help me

    thank a lot

    Reply
  • How to print the image

    Posted by Legacy on 05/20/2003 12:00am

    Originally posted by: Daniel

    How can I print The Image??

    Reply
  • Demo project using GDI+ to display BMP, JPEG, GIF, TIFF, PNG thumbnails

    Posted by Legacy on 04/08/2003 12:00am

    Originally posted by: Yi Ren

    A lof people ask me to give a demo. project to show the thumbnails of images other than BMP. This demo. program uses the new GDI+ to manipulate the images with BMP. JPEG, GIF, TIFF and PNG formats. If you want to know something about GDI+, refer to an article in the MSDN magzine at the link below: http://msdn.microsoft.com/msdnmag/issues/02/03/c/default.aspx

    Yi

    Reply
  • Please give a Demo code about use JPG image. Thanks!

    Posted by Legacy on 02/17/2003 12:00am

    Originally posted by: chequan

    Thanks!

    Reply
  • Please give a Demo code about use JPG image. Thanks!

    Posted by Legacy on 02/17/2003 12:00am

    Originally posted by: chequan

    Thanks!

    Reply
  • Fantastic!!

    Posted by Legacy on 10/31/2002 12:00am

    Originally posted by: Denis

    Fantastic

    Reply
  • Selected item(s)

    Posted by Legacy on 10/15/2001 12:00am

    Originally posted by: Enrico Fichtner

    How to render the selected item(s) differently than they are in your app? The standard style of selection looks ugly with 'real' images (my oppinion).

    Reply
  • TEST

    Posted by Legacy on 07/31/2001 12:00am

    Originally posted by: jane doe

    TEST

    Reply
  • Using Thumbnail Images in a List Control

    Posted by Legacy on 05/09/2001 12:00am

    Originally posted by: Bath

    How to load tiff files insted of bmp???????

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Hybrid cloud platforms need to think in terms of sweet spots when it comes to application platform interface (API) integration. Cloud Velocity has taken a unique approach to tight integration with the API sweet spot; enough to support the agility of physical and virtual apps, including multi-tier environments and databases, while reducing capital and operating costs. Read this case study to learn how a global-level Fortune 1000 company was able to deploy an entire 6+ TB Oracle eCommerce stack in Amazon Web …

  • Live Event Date: August 14, 2014 @ 2:00 p.m. ET / 11:00 a.m. PT Data protection has long been considered "overhead" by many organizations in the past, many chalking it up to an insurance policy or an extended warranty you may never use. The realities of today makes data protection a must-have, as we live in a data-driven society -- the digital assets we create, share, and collaborate with others on must be managed and protected for many purposes. Check out this upcoming eSeminar and join Seagate Cloud …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds