Solved

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

Posted on 2006-11-29
2
560 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
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
bobThere java chalenge 45 82
iSeries FTP Exit Program 8 113
Expand to include initial dialog with two choices. 9 59
countEvens challenge 2 57
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…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now