"The code is exactly
how I would like to write code and the algorithms used are very
efficient and well-documented."
Van T. Dinh, Microsoft MVP
|
|
Class: CHistoryList
Class that implements a history list. If you have ever used a web browser, you are already familiar with the concept of a History List. When you press your browser's Back button, you return the previous page you viewed. Similarly, when you press the Next button, you move to the page after the one you are currently on.
This class implements the History List mechanism as a set of two stacks: a forward stack and a backward stack. The forward stack contains items that have been popped off the history list, whereas the backward stack contains items that have been pushed onto the history list.
By maintaining these two stacks, the class keeps a history list that allows you to move back and forth through a history of items.
|
Procedure Name
|
Type
|
Description
|
|
(Declarations)
|
Declarations
|
Declarations and private variables for the CHistoryList class
|
|
BackEnabled
|
Property
|
Returns whether Back is enabled
|
|
CurrentItem
|
Property
|
Gets the current item from the history list
|
|
ForwardEnabled
|
Property
|
Returns whether forward is enabled
|
|
MaxItems
|
Property
|
Sets the maximum number of items that can be added to the history list
|
|
Add
|
Method
|
Add an item to the history list
|
|
Back
|
Method
|
Moves back in the history list
|
|
Class_Initialize
|
Initialize
|
Set initial values to defaults which may be overridden with property settings
|
|
EnumerateBack
|
Method
|
Enumerates the items available with the back method
|
|
EnumerateForward
|
Method
|
Enumerates the items available with the forward method
|
|
Forward
|
Method
|
Moves forward in the history list
|
|
GetItem
|
Private
|
Returns the item in the history list specified by lngIndex.
|
Overview of Total Visual SourceBook
The source code in Total Visual
SourceBook includes modules and classes for Microsoft Access, Visual
Basic 6 (VB6), and Visual Basic for Applications (VBA) developers. Easily
add this professionally written, tested, and documented royalty-free code
into your applications to simplify your application development efforts.
Additional Resources
|
|