Windows C++ Library
|
The TreeView common control. More...
#include <TreeView.hpp>
Public Member Functions | |
TreeView () | |
Default constructor. | |
virtual | ~TreeView () |
Destructor. | |
HTREEITEM | Root () const |
Get the root item. | |
HTREEITEM | Selection () const |
Get the current selection. | |
void | SetImageList (uint nType, const CImageList &oImageList) |
Set an image list for the tree view. | |
void | SetImageList (uint nType, uint nRscID, uint nImgWidth, COLORREF crMask) |
Set an image list for the tree view. | |
void | Clear () |
Delete all items from the tree. | |
HTREEITEM | InsertRootItem (const tstring &strText, bool bHasChildren=false, int nImage=-1) |
Insert the tree root item. | |
HTREEITEM | InsertItem (HTREEITEM hParent, HTREEITEM hPredecessor, const tstring &strText, bool bHasChildren=false, int nImage=-1) |
Insert a tree item. | |
void | UpdateItem (HTREEITEM hItem, const tstring &strText, bool bHasChildren, int nImage) |
Update a tree item. | |
void | Select (HTREEITEM hItem) |
Select a tree item. | |
Protected Member Functions | |
virtual void | GetCreateParams (WNDCREATE &rParams) |
Get the default window creation settings. |
The TreeView common control.
Default constructor.
WCL::TreeView::~TreeView | ( | ) | [virtual] |
Destructor.
HTREEITEM WCL::TreeView::Root | ( | ) | const [inline] |
Get the root item.
HTREEITEM WCL::TreeView::Selection | ( | ) | const [inline] |
Get the current selection.
void WCL::TreeView::SetImageList | ( | uint | nType, |
const CImageList & | oImageList | ||
) |
Set an image list for the tree view.
void WCL::TreeView::SetImageList | ( | uint | nType, |
uint | nRscID, | ||
uint | nImgWidth, | ||
COLORREF | crMask | ||
) |
Set an image list for the tree view.
void WCL::TreeView::Clear | ( | ) | [inline] |
Delete all items from the tree.
HTREEITEM WCL::TreeView::InsertRootItem | ( | const tstring & | strText, |
bool | bHasChildren = false , |
||
int | nImage = -1 |
||
) | [inline] |
Insert the tree root item.
HTREEITEM WCL::TreeView::InsertItem | ( | HTREEITEM | hParent, |
HTREEITEM | hPredecessor, | ||
const tstring & | strText, | ||
bool | bHasChildren = false , |
||
int | nImage = -1 |
||
) |
Insert a tree item.
void WCL::TreeView::UpdateItem | ( | HTREEITEM | hItem, |
const tstring & | strText, | ||
bool | bHasChildren, | ||
int | nImage | ||
) |
Update a tree item.
void WCL::TreeView::Select | ( | HTREEITEM | hItem | ) |
Select a tree item.
void WCL::TreeView::GetCreateParams | ( | WNDCREATE & | rParams | ) | [protected, virtual] |
Get the default window creation settings.
Reimplemented from CCtrlWnd.