WinapiExtension
 All Classes Files Functions Variables Typedefs Pages
Classes | Public Member Functions | List of all members
TreeView Class Reference

Wrapper for tree view controls. More...

#include <control.h>

Inheritance diagram for TreeView:
Control IWindow

Classes

struct  Item
 Handle to an item in the tree. More...
 
struct  ItemData
 Used to get or set values of a HTREEITEM. More...
 

Public Member Functions

 TreeView (HWND hwnd=NULL)
 
void DeleteAllItems ()
 
void DeleteItem (HTREEITEM item)
 
COLORREF GetBkColor ()
 
UINT GetCount ()
 
HWND GetEditControl ()
 
Item GetNextItem (WPARAM flag, HTREEITEM item)
 
Item GetRoot ()
 
Item GetSelection ()
 
COLORREF GetTextColor ()
 
Item InsertItem (HTREEITEM parent, HTREEITEM insertAfter, const ItemData &item)
 
Item InsertItemFirst (HTREEITEM parent, const ItemData &data)
 
Item InsertItemLast (HTREEITEM parent, const ItemData &data)
 
Item InsertItemRoot (const ItemData &data)
 
Item InsertItemSort (HTREEITEM parent, const ItemData &data)
 
void SetBkColor (COLORREF color)
 
void SetTextColor (COLORREF color)
 
- Public Member Functions inherited from Control
 Control (HWND hwnd=NULL)
 
HWND _InternalGetHandle ()
 
 operator HWND ()
 
Controloperator= (HWND hwnd)
 
- Public Member Functions inherited from IWindow
Rect ClientRect ()
 
void Destroy ()
 
void DragAcceptFiles (BOOL accept=TRUE)
 
void Enable (BOOL enable)
 
DWORD GetExStyle ()
 
HFONT GetFont ()
 
HICON GetIcon (BOOL bigIcon)
 
DWORD GetID ()
 
DWORD GetStyle ()
 
tstring GetText ()
 
BOOL Invalidate (const RECT *rect=NULL, BOOL eraseBkgnd=TRUE)
 
BOOL IsEnabled ()
 
BOOL IsVisible ()
 
void KillTimer (UINT_PTR timerID)
 
void ModifyStyle (DWORD add, DWORD remove)
 
void Move (int x, int y, BOOL redraw=TRUE)
 
void Move (const POINT &p, BOOL redraw=TRUE)
 
void Move (int x, int y, int width, int height, BOOL redraw=TRUE)
 
void Move (const POINT &p, const SIZE &s, BOOL redraw=TRUE)
 
void Move (const RECT &r, BOOL redraw=TRUE)
 
HWND ParentHandle ()
 
Rect RectOnParent ()
 
BOOL Redraw (const RECT *rect=NULL, HRGN region=NULL, UINT flags=RDW_INVALIDATE|RDW_UPDATENOW|RDW_ERASE)
 
HWND SetFocus ()
 
void SetFont (HFONT font, BOOL redraw=TRUE)
 
HICON SetIcon (HICON icon, BOOL bigIcon)
 
void SetRedraw (BOOL allowRedraw)
 
void SetText (const tstring &text)
 
UINT_PTR SetTimer (UINT_PTR timerID, UINT interval, TIMERPROC proc=NULL)
 
BOOL Show (int cmdShow)
 
Rect WindowRect ()
 

Additional Inherited Members

- Public Attributes inherited from Control
HWND handle
 

Detailed Description

Wrapper for tree view controls.

Constructor & Destructor Documentation

TreeView::TreeView ( HWND  hwnd = NULL)
inline

Member Function Documentation

void TreeView::DeleteAllItems ( )
inline
void TreeView::DeleteItem ( HTREEITEM  item)
inline
COLORREF TreeView::GetBkColor ( )
inline
UINT TreeView::GetCount ( )
inline
HWND TreeView::GetEditControl ( )
inline
Returns
Handle of the edit control during inplace editing
Item TreeView::GetNextItem ( WPARAM  flag,
HTREEITEM  item 
)
inline
Item TreeView::GetRoot ( )
inline
Item TreeView::GetSelection ( )
inline
COLORREF TreeView::GetTextColor ( )
inline
Item TreeView::InsertItem ( HTREEITEM  parent,
HTREEITEM  insertAfter,
const ItemData item 
)
inline
Item TreeView::InsertItemFirst ( HTREEITEM  parent,
const ItemData data 
)
inline
Item TreeView::InsertItemLast ( HTREEITEM  parent,
const ItemData data 
)
inline
Item TreeView::InsertItemRoot ( const ItemData data)
inline
Item TreeView::InsertItemSort ( HTREEITEM  parent,
const ItemData data 
)
inline
void TreeView::SetBkColor ( COLORREF  color)
inline
void TreeView::SetTextColor ( COLORREF  color)
inline

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