?
Solved

Virtual CListCtrl

Posted on 1997-10-27
2
Medium Priority
?
319 Views
Last Modified: 2013-11-20
How can I use CListCtrl to browse large database (more than 10000 records.  I must do this without any third party grid control (i.e. the source code must be freely available)
0
Comment
Question by:wise_man
2 Comments
 
LVL 1

Accepted Solution

by:
kargo earned 300 total points
ID: 1308846
There are basically 2 ways to accomplish this task. The 1st is to use virtual LB technology and add only a place holder for the items then when the user scrolls supply the real information.  This is helped using the WM_NOTIFY message from the list control.  The 2nd involves using a timer or thread to populate the control.  This allows the UI to respond to the users input while fully populating the list.  In the application I work on there is a record count of 400k which posed unique problems.  99% of the time the user knew the record ID.  What I created was a mix of a few things.

On the bottom of the window I have an edit control that the user can enter the ID if they know it.  All the while I an filling the list woth record using another thread.  I also added buttons to the right of the list to allow the user to select a sub-list (e.g., all name starting with "A").  The users received this solution well and like the flexability.
0
 

Author Comment

by:wise_man
ID: 1308847
I would like to get information on how to use CListCtrl to handle the situation, what messages / virtual function to overide, etc..
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month16 days, 8 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question