?
Solved

Virtual CListCtrl

Posted on 1997-10-27
2
Medium Priority
?
315 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

770 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