CListCtrl with 1000's of entries is too slow
Posted on 1997-04-03
I'm using a CListBox to display entries from a large database. My problem is that as the number of entries exceeds a couple of thousand, the time taken to re-draw the ListBox becomes prohibitive. Is there a way of only writing to the Listbox enough entries to fill the screen and then loading new ones from the database as and when the listbox is scrolled. This effect can be seen in the explorer when a directory contains many files. I know that one approach is to use some kind of "virtual listbox" but examples I have seen are very old.