-
Slow CListCtrl
Hi.
I need to put in a CListCtrl about 300.000 items but it is very slow.
There are some way to work properly with this number of items?
Now I am working in a loop as follow:
1.- Read data from file (it is fast)
2.- lstCtrl.InsertItem(...)
3.- lstCtrl.SetItemText(...)
I only need to put in a grid the file content: are ther other control faster?
Thanks in advance!!
-
Re: Slow CListCtrl
You could try this
Before you start loading
Code:
ListCtrl.SetRedraw (false);
After you are done
Code:
ListCtrl.SetRedraw (true);
ListCtrl.Invalidate ()
Now the list control is not redrawn for each added item, but only 1 time after you are done.
-
Re: Slow CListCtrl