Article View: news.software.readers
Article #49777O/T: listview was Re: Xnews: Any max on number of groups?
From: Luu Tran
Date: Fri, 09 Jul 1999 00:00
Date: Fri, 09 Jul 1999 00:00
27 lines
1774 bytes
1774 bytes
Dufus@homo.com (Dufus) wrote in <931445871.384.52@news.remarQ.com>: >Luu, > >Are you doing the virtual list control through callbacks or are you >simply adding and deleting items in real time as scrolling takes place? >Just curious. It seems like the adding and deleting while scrolling >might be the most efficient way if a little slower, since you never have >more then N items in the list N depending on the height of the control. >I was too lazy to do this and used the standard callback mechanism >supplied by the list control. > >Conrad > In virtual mode, you don't add or subtract items. You just set # of items and handle the callback for item data. Windows is (or should be) smart enough to ask for only visible items. Optionally, you can handle the "hint" callback, whereby Windows tells you which items it's likely to request next so you can pre-fetch the data to memory, assuming your data reside in slow memory such as a database. -- luu author of Xnews -- http://xnews.3dnews.net
Technical Details
Message-ID:
<8DFE508DCluutrangeocities@news.mindspring.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<8DFC865CBlbahoflinkcom@news.hoflink.com> <7m2af1$q0t$1@usenet49.supernews.com> <8DFD49E15luutrangeocities@news.mindspring.com> <931445871.384.52@news.remarQ.com>Show Full Headers
Complete Article Headers
Message-ID: <8DFE508DCluutrangeocities@news.mindspring.com> Subject: O/T: listview was Re: Xnews: Any max on number of groups? Date: Fri, 09 Jul 1999 00:00:00 +0000 From: luu@xnews.3dnews.net.invalid (Luu Tran) References: <8DFC865CBlbahoflinkcom@news.hoflink.com> <7m2af1$q0t$1@usenet49.supernews.com> <8DFD49E15luutrangeocities@news.mindspring.com> <931445871.384.52@news.remarQ.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 499119970 Organization: Daedalus User-Agent: Xnews/2.07.07 Newsgroups: news.software.readers