Leaked source code of windows server 2003
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

  1. //--------------------------------------------------------------------------
  2. //
  3. // treeview.h
  4. //
  5. //--------------------------------------------------------------------------
  6. class CTreeView
  7. {
  8. private:
  9. HWND hTreeView;
  10. public:
  11. CTreeView();
  12. ~CTreeView();
  13. void Create(HWND hwndParent, int x, int y, int nWidth, int nHeight);
  14. HTREEITEM AddItem(LPTSTR lpszItem, HTREEITEM hParentItem = NULL);
  15. void MoveWindow(int x, int y, int nWidth, int nHeight);
  16. void SetSel(HTREEITEM hItem);
  17. HTREEITEM GetSel();
  18. void GetItemText(HTREEITEM hItem, LPTSTR szItemText, int nSize);
  19. HWND GetHandle();
  20. void DeleteNodes(HTREEITEM hItem);
  21. void CollapseChildNodes(HTREEITEM hParentItem);
  22. };
  23. class CStatusWindow
  24. {
  25. private:
  26. HWND hStatusWindow;
  27. int nHeight;
  28. public:
  29. CStatusWindow();
  30. ~CStatusWindow();
  31. void Create(HWND hwndParent, int nCtlID);
  32. void Size(int nWidth);
  33. void SetText(LPTSTR szText);
  34. int Height() const;
  35. };