Solved

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

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
if loop in java 3 153
string initialization in java 11 115
matchUp  challenge 6 69
ASP.NET C# MessageBox.Show Showing a modal dialog box or form when the application ... 2 163
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: 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…
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.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

860 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