Link to home
Start Free TrialLog in
Avatar of sparkythedog
sparkythedogFlag for Canada

asked on

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

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
ASKER CERTIFIED SOLUTION
Avatar of mahesh1402
mahesh1402
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sparkythedog

ASKER

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