RE: For the ListView Pros.
Tony Steward wrote:
> Secondly loading a listview with this number of items is painfully slow,
> I
> currently read a EU database and fill the list. It seems to me that if I
> can
> see the scroll bar shrinking as I add items it must be redrawing the LV
> after adding each item, this would slow it down considerable. Is there a
> better way, I seem to remember some talk on this a while ago.
Tony,
I came across the same problem. I was loading many items to a list view
and the load time was really bad. What I found to be the problem is
that Win32Lib uses LPSTR_TEXTCALLBACK in addLVItem. This causes Windows
to call back to Win32Lib to get the text for each list view item instead
of storing it internally. Take a look at my SQL utility on the Recent
Contributions page on the RDS site to see how I got around this.
HTH,
Jonas
|
Not Categorized, Please Help
|
|