?
Solved

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

Posted on 2006-11-29
2
Medium Priority
?
599 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 1500 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

764 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