WinapiExtension
 All Classes Files Functions Variables Typedefs Pages
Public Member Functions | Public Attributes | List of all members
TreeView::Item Struct Reference

Handle to an item in the tree. More...

#include <control.h>

Public Member Functions

 Item (HTREEITEM pItem, HWND pTree)
 
 Item (const Item &other)
 
void BeginEdit ()
 
void Expand (WPARAM flag=TVE_EXPAND)
 
void GetData (ItemData &data)
 
Item GetFirstChild ()
 
Item GetNext ()
 
Item GetNextItem (WPARAM flag)
 
LPARAM GetParam ()
 
Item GetParent ()
 
Item GetPrevious ()
 
BOOL GetRect (RECT &r, BOOL onlyText=FALSE)
 
UINT GetState (UINT stateMask)
 
tstring GetText ()
 
Item InsertItem (HTREEITEM insertAfter, const ItemData &data)
 
Item InsertItemFirst (const ItemData &data)
 
Item InsertItemLast (const ItemData &data)
 
Item InsertItemSort (const ItemData &data)
 
 operator HTREEITEM ()
 
Itemoperator= (const Item &other)
 
void Select ()
 
void SetData (ItemData &data)
 
void SetParam (LPARAM param)
 
void SetState (UINT state, UINT stateMask)
 
void SetText (const TCHAR *text)
 
void SortChildren (BOOL recursive=FALSE)
 
void SortChildrenCallback (PFNTVCOMPARE callback, LPARAM param, BOOL recursive=FALSE)
 

Public Attributes

HTREEITEM item
 
HWND tree
 

Detailed Description

Handle to an item in the tree.

Constructor & Destructor Documentation

TreeView::Item::Item ( HTREEITEM  pItem,
HWND  pTree 
)
inline
TreeView::Item::Item ( const Item other)
inline

Member Function Documentation

void TreeView::Item::BeginEdit ( )
inline
void TreeView::Item::Expand ( WPARAM  flag = TVE_EXPAND)
inline
Parameters
flag
  • TVE_COLLAPSE
  • TVE_COLLAPSERESET
  • TVE_EXPAND
  • TVE_EXPANDPARTIAL
  • TVE_TOGGLE
void TreeView::Item::GetData ( ItemData data)
inline
Item TreeView::Item::GetFirstChild ( )
inline
Item TreeView::Item::GetNext ( )
inline
Item TreeView::Item::GetNextItem ( WPARAM  flag)
inline
LPARAM TreeView::Item::GetParam ( )
inline
Item TreeView::Item::GetParent ( )
inline
Item TreeView::Item::GetPrevious ( )
inline
BOOL TreeView::Item::GetRect ( RECT &  r,
BOOL  onlyText = FALSE 
)
inline
UINT TreeView::Item::GetState ( UINT  stateMask)
inline
tstring TreeView::Item::GetText ( )
inline
Item TreeView::Item::InsertItem ( HTREEITEM  insertAfter,
const ItemData data 
)
inline
Item TreeView::Item::InsertItemFirst ( const ItemData data)
inline
Item TreeView::Item::InsertItemLast ( const ItemData data)
inline
Item TreeView::Item::InsertItemSort ( const ItemData data)
inline
TreeView::Item::operator HTREEITEM ( )
inline
Item& TreeView::Item::operator= ( const Item other)
inline
void TreeView::Item::Select ( )
inline
void TreeView::Item::SetData ( ItemData data)
inline
void TreeView::Item::SetParam ( LPARAM  param)
inline
void TreeView::Item::SetState ( UINT  state,
UINT  stateMask 
)
inline
void TreeView::Item::SetText ( const TCHAR *  text)
inline
void TreeView::Item::SortChildren ( BOOL  recursive = FALSE)
inline
void TreeView::Item::SortChildrenCallback ( PFNTVCOMPARE  callback,
LPARAM  param,
BOOL  recursive = FALSE 
)
inline

Member Data Documentation

HTREEITEM TreeView::Item::item

Item handle.

HWND TreeView::Item::tree

Parent tree view of this item.


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