RE: Listviews and time....

new topic     » goto parent     » topic index » view thread      » older message » newer message

Euman wrote:
> I was hopeing someone might have an idea how to load in a couple 
> thousand
> items to a Listview in a timely manner....

Euman,

I submitted to Matt Lewis a change I suggested to Win32Lib to address 
this problem.  The issue is the sendMessage function for adding items 
into a list view uses LPSTR_TEXTCALLBACK (or something like that).  This 
tells the list view to issue a callback to get the text of the item.  
Unfortunately it must call back for EVERY item/column in your list view. 
 And you're right, it's VERY slow.  

I overcame this in the ODBC SQL utility I submitted to the user 
contributions page.  I coded my own sendMessage functions supplying the 
text to put into the list view.  No callback.  Runs much faster.  
Although with this fix you can't allow the column headers to be sorted 
since this would require going through Win32Lib's functions to add list 
view items.

I don't know if this is something that will be addressed in the next 
version or not...Derek?

Hope this helps,

Jonas

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu