Solved

The items in CListCtrl will flicker when they are selected and unselected.

Posted on 2006-11-29
2
582 Views
Last Modified: 2013-11-20
Hi,

I have implemented a Thumbnail view for photos in ClistCtrl with Custom Draw style.

But when there are a lot of items (about 800 or 1000) in it, the items which are selected and unselected (and only these two items) will flicker.

The flicker is more obvious if the selected-unselected items are in the second half of the list. For example: for the first 30 items, I don't see the flicker, but when I scroll the view to the middle -- about 400, it is so obvious already. And it will become worse and worse.

Anybody knows how to solve it?

Best Regards,
Michael zhang
0
Comment
Question by:sparkythedog
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 22

Accepted Solution

by:
mahesh1402 earned 500 total points
ID: 18043027
Following samples with src may be of urs use.. you may take look how its implemented to show thumbnails in CListCtrl

Showing the Image file thumbnail view in ListView control  :http://www.codeproject.com/listctrl/Simple_Thumbnail_Listview.asp
CodeGuru: List Control displaying image thumbnails : http://www.codeguru.com/Cpp/controls/listview/usingimages/article.php/c899/
Thumbnails Viewer using ListCtrl :http://www.codeproject.com/listctrl/ThumbsViewer.asp

-MAHESH
0
 

Author Comment

by:sparkythedog
ID: 18045570
Hi,

Actually, I have read these articles before I implement my own Thumbnail Listview. (And I also I need double buffer to improve the efficiency, delay loading and GC thread to free resource, and design it for easier enhance in the future -- E.g. support movie,  ...). It looks OK.

The only thing I met is flicker. And it depends on the item's location of the List view. (the draw code is same to me. I don't care of the item id is 10 or 800. I just get the location and draw it)

Anyway, thank you for your kindly reply and your information.

Thanks

Best Regards,
Michael ZHANG
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
substring method in java 1 136
sum28 challenge 31 117
zeroMAx challenge 20 127
Problem to App source 6 93
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question