You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.0 KiB
42 lines
1.0 KiB
//--------------------------------------------------------------------------
|
|
//
|
|
// treeview.h
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
|
|
class CTreeView
|
|
{
|
|
private:
|
|
HWND hTreeView;
|
|
|
|
public:
|
|
CTreeView();
|
|
~CTreeView();
|
|
|
|
void Create(HWND hwndParent, int x, int y, int nWidth, int nHeight);
|
|
HTREEITEM AddItem(LPTSTR lpszItem, HTREEITEM hParentItem = NULL);
|
|
void MoveWindow(int x, int y, int nWidth, int nHeight);
|
|
void SetSel(HTREEITEM hItem);
|
|
HTREEITEM GetSel();
|
|
void GetItemText(HTREEITEM hItem, LPTSTR szItemText, int nSize);
|
|
HWND GetHandle();
|
|
void DeleteNodes(HTREEITEM hItem);
|
|
void CollapseChildNodes(HTREEITEM hParentItem);
|
|
};
|
|
|
|
|
|
class CStatusWindow
|
|
{
|
|
private:
|
|
HWND hStatusWindow;
|
|
int nHeight;
|
|
|
|
public:
|
|
CStatusWindow();
|
|
~CStatusWindow();
|
|
|
|
void Create(HWND hwndParent, int nCtlID);
|
|
void Size(int nWidth);
|
|
void SetText(LPTSTR szText);
|
|
int Height() const;
|
|
};
|