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

Used to represent the data to be stored in the TTreeViewCtrl. More...

#include <owl/treeviewctrl.h>

Inheritance diagram for owl::TTvItem:

Public Member Functions

 TTvItem ()
 this is called by some TTreeNode constructors
 
 TTvItem (TVITEM item)
 
 TTvItem (LPCTSTR, int len=0)
 
 TTvItem (LPCTSTR, int index, int selIndex)
 
void SetText (LPCTSTR, int len=-1)
 Initialize the text.
 
void GetText (TCHAR *, int len)
 
void SetHTreeItem (HTREEITEM hItem)
 
HTREEITEM GetHTreeitem () const
 
void SetImageIndex (int index)
 Set the imagelist index.
 
void SetSelectedImageIndex (int index)
 Set the selected image index.
 
void SetItemData (LPARAM)
 Store additional information.
 
LPARAM GetItemData () const
 

Protected Member Functions

void Init ()
 

Detailed Description

Used to represent the data to be stored in the TTreeViewCtrl.

TODO: Make the object hold a copy of the item text. See TLvItem.

Definition at line 49 of file treeviewctrl.h.

Constructor & Destructor Documentation

◆ TTvItem() [1/4]

owl::TTvItem::TTvItem ( )

this is called by some TTreeNode constructors

Definition at line 758 of file treeviewctrl.cpp.

References Init().

◆ TTvItem() [2/4]

owl::TTvItem::TTvItem ( TVITEM item)

Definition at line 766 of file treeviewctrl.cpp.

References Init().

◆ TTvItem() [3/4]

owl::TTvItem::TTvItem ( LPCTSTR text,
int len = 0 )

Definition at line 775 of file treeviewctrl.cpp.

References Init(), and SetText().

◆ TTvItem() [4/4]

owl::TTvItem::TTvItem ( LPCTSTR text,
int index,
int selIndex )

Definition at line 784 of file treeviewctrl.cpp.

References Init(), SetImageIndex(), SetSelectedImageIndex(), and SetText().

Member Function Documentation

◆ GetHTreeitem()

HTREEITEM owl::TTvItem::GetHTreeitem ( ) const

Definition at line 828 of file treeviewctrl.cpp.

◆ GetItemData()

LPARAM owl::TTvItem::GetItemData ( ) const

Definition at line 867 of file treeviewctrl.cpp.

◆ GetText()

void owl::TTvItem::GetText ( TCHAR * buffer,
int len )

Definition at line 807 of file treeviewctrl.cpp.

References _tcsncpy.

◆ Init()

void owl::TTvItem::Init ( )
protected

Definition at line 750 of file treeviewctrl.cpp.

◆ SetHTreeItem()

void owl::TTvItem::SetHTreeItem ( HTREEITEM hItem)

Definition at line 818 of file treeviewctrl.cpp.

◆ SetImageIndex()

void owl::TTvItem::SetImageIndex ( int index)

Set the imagelist index.

Definition at line 847 of file treeviewctrl.cpp.

◆ SetItemData()

void owl::TTvItem::SetItemData ( LPARAM data)

Store additional information.

Definition at line 837 of file treeviewctrl.cpp.

◆ SetSelectedImageIndex()

void owl::TTvItem::SetSelectedImageIndex ( int index)

Set the selected image index.

Definition at line 857 of file treeviewctrl.cpp.

◆ SetText()

void owl::TTvItem::SetText ( LPCTSTR buffer,
int len = -1 )

Initialize the text.

Definition at line 796 of file treeviewctrl.cpp.

References CONST_CAST.


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