Solved

Virtual CListCtrl

Posted on 1997-10-27
2
307 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
Comment Utility
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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
deburging in oracle form 12 76
zeroFront challenge 7 70
noX challenge 17 75
mapAB Challlenge 35 84
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

763 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now