Speed up listview when adding thousands of items
-
Hi, I'm new in Visual C++ .net 2005 and I'm writing a Newsreader and i have the following problem: on my form load event i'm reading a text file into my listview, the textfile contains about 66000 lines, so when the form loads it doesn't respond for a few seconds. I have already searched the new for an answer to my question but nothing could help me out...it also tried to use the virutal mode for the listview but I don't get on with this mode :( I'm becoming desperate...so it would be very nice if someone could help me on this, maybe sending me a tutorial or a very simple sample code thx in advance No need to invent new thing when they already exist
-
Hi, I'm new in Visual C++ .net 2005 and I'm writing a Newsreader and i have the following problem: on my form load event i'm reading a text file into my listview, the textfile contains about 66000 lines, so when the form loads it doesn't respond for a few seconds. I have already searched the new for an answer to my question but nothing could help me out...it also tried to use the virutal mode for the listview but I don't get on with this mode :( I'm becoming desperate...so it would be very nice if someone could help me on this, maybe sending me a tutorial or a very simple sample code thx in advance No need to invent new thing when they already exist
-
Master Gollom wrote:
textfile contains about 66000 lines
I think I know why it's taking so long to load the listview.;P
I also know that the 66000 lines are taking much time but there must be a way to load them faster
-
I also know that the 66000 lines are taking much time but there must be a way to load them faster
make 11 threads which load 6000 lines ?:D (isnt that be 11 times faster :D)
-
Hi, I'm new in Visual C++ .net 2005 and I'm writing a Newsreader and i have the following problem: on my form load event i'm reading a text file into my listview, the textfile contains about 66000 lines, so when the form loads it doesn't respond for a few seconds. I have already searched the new for an answer to my question but nothing could help me out...it also tried to use the virutal mode for the listview but I don't get on with this mode :( I'm becoming desperate...so it would be very nice if someone could help me on this, maybe sending me a tutorial or a very simple sample code thx in advance No need to invent new thing when they already exist
There is an article in code guru for speed-up the list control using virtual list control. Please check the link; some times you may get some idea from that. http://www.codeguru.com/cpp/controls/listview/advanced/article.php/c4151/[^] -- modified at 22:46 Sunday 28th May, 2006
-
There is an article in code guru for speed-up the list control using virtual list control. Please check the link; some times you may get some idea from that. http://www.codeguru.com/cpp/controls/listview/advanced/article.php/c4151/[^] -- modified at 22:46 Sunday 28th May, 2006
thanks for your answer, but i have already found this link on the net but it couldn't help me out because this code is not in vc++ .net 2005 :(