|
-
November 25th, 2009, 06:24 AM
#1
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!!
-
November 25th, 2009, 06:27 AM
#2
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.
-
November 25th, 2009, 06:35 AM
#3
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|