RE: LVM_INSERTITEM very slow in vista/W7
"Anna-Jayne Metcalfe" <[email protected]>
| Newsgroups | gmane.comp.windows.wtl |
|---|---|
| Message-ID | <!&!AAAAAAAAAAAYAAAAAAAAAFpZYOCpua1AsUU25lbUK8bCgAAAEAAAAMHQPno1bnJAveKJl8EdJ3YBAAAAAA==@annasplace.me.uk> |
Hi Nikos, > in a large listview control collection (say 5000 items), adding a SINGLE extra item can take 10+ seconds in windows 7, and that's just the LVM_INSERTITEM message handling > it looks that it only affects LVS_ICON, LVS_REPORT and LVS_LIST are still very fast If you are dealing with that volume of data I'd suggest you seriously consider making the list control virtual (LVS_OWNERDATA style). In that case you won't need LVM_INSERTITEM so the problem won't arise. The only downside I can think of is that virtual list controls don't support grouping, so unless you're using that you should seriously consider switching to a virtual control. Cheers, Anna x http://www.annasplace.me.uk IM: [email protected] (MSN) / jalapenokitten (Yahoo) Twitterings: http://twitter.com/annajayne Flickr: http://www.flickr.com/photos/jalapenokitten/ ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/wtl/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/wtl/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/