Solved

Virtual CListCtrl

Posted on 1997-10-27
2
314 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

691 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