home | |||
links |
|
||
developer's mag main page article part 1 part 2 part 3 part 4 part 5 |
5 - And Then SomeAll this makes CList useful enough - however, it can do much more. The key is the open nature of the code. Remember that the parent CList class only needs to know the number of items in a list - your child class deals with the actual data and row height. This points up some interesting possibilities:
To illustrate some of these variations, the example source code (eg_6.zip) creates and displays three different modal list box dialogs:
The download also includes a SEB file for the impatient, but I encourage you to review the code to get comfortable with the CList class and its varied progeny - it might spark some creative variations on your part. A final point to remember is that in each case, little or no memory is used besides the original data. On a computer with limited memory, this is a very good reason that virtual list boxes should be a important addition to your programming arsenal. Previous Section |
||
Copyright © 2001-2006 ebmDevMag.com - Legal Notice |