OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TTvComparator Class Reference

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.
 

Detailed Description

Base class for comparing tree nodes.

See also
TTreeNode::SortChildren.

Definition at line 87 of file treeviewctrl.h.

Member Function Documentation

◆ Compare()

int owl::TTvComparator::Compare ( LPARAM item1,
LPARAM item2,
LPARAM lParam ) const
inlinevirtual

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.

See also
http://msdn.microsoft.com/en-us/library/windows/desktop/bb773782.aspx

Derived classes should override this to return proper sorting codes.

Definition at line 480 of file treeviewctrl.h.


The documentation for this class was generated from the following file: