Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Virtual CListCtrl

Posted on 1997-10-27
2
Medium Priority
?
317 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

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 …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

609 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