OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Base class for comparing tree nodes. More...
#include <owl/treeviewctrl.h>
Public Member Functions | |
virtual int | Compare (LPARAM item1, LPARAM item2, LPARAM lParam) const |
Returns a value < 0 if item1 < item2 , 0 if item1 == item2 , or > 0 if item1 > item2 . | |
Base class for comparing tree nodes.
Definition at line 87 of file treeviewctrl.h.
Returns a value < 0 if item1
< item2
, 0 if item1
== item2
, or > 0 if item1
> item2
.
Default comparison function that makes every item equal to every other item.
Parameter lParam
is the user-defined value, passed to TTreeNode::SortChildren. Note that item1
and item2
are the used-defined values associated with the items. Values can be associated with items using TTreeNode::SetItemData.
Derived classes should override this to return proper sorting codes.
Definition at line 480 of file treeviewctrl.h.