VirtualTreeCtrl.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /* Copyright (c) 2002-2012 Croteam Ltd.
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of version 2 of the GNU General Public License as published by
  4. the Free Software Foundation
  5. This program is distributed in the hope that it will be useful,
  6. but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. GNU General Public License for more details.
  9. You should have received a copy of the GNU General Public License along
  10. with this program; if not, write to the Free Software Foundation, Inc.,
  11. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
  12. // VirtualTreeCtrl.h : header file
  13. //
  14. #ifndef VIRTUALTREECTRL_H
  15. #define VIRTUALTREECTRL_H 1
  16. /////////////////////////////////////////////////////////////////////////////
  17. // CVirtualTreeCtrl window
  18. class CBrowser;
  19. class CVirtualTreeCtrl : public CTreeCtrl
  20. {
  21. // Construction
  22. public:
  23. CVirtualTreeCtrl();
  24. // Attributes
  25. public:
  26. CBrowser *m_pBrowser;
  27. COleDataSource m_DataSource;
  28. BOOL m_bIsOpen;
  29. // Operations
  30. public:
  31. void OpenTreeCtrl(void);
  32. void CloseTreeCtrl(void);
  33. void SetBrowserPtr( CBrowser *pBrowser);
  34. void OnContextMenu( CPoint point);
  35. CVirtualTreeNode *ItemForCoordinate(CPoint pt);
  36. // Overrides
  37. // ClassWizard generated virtual function overrides
  38. //{{AFX_VIRTUAL(CVirtualTreeCtrl)
  39. //}}AFX_VIRTUAL
  40. // Implementation
  41. public:
  42. virtual ~CVirtualTreeCtrl();
  43. // Generated message map functions
  44. protected:
  45. //{{AFX_MSG(CVirtualTreeCtrl)
  46. afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
  47. afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  48. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  49. afx_msg void OnDropFiles(HDROP hDropInfo);
  50. //}}AFX_MSG
  51. DECLARE_MESSAGE_MAP()
  52. };
  53. /////////////////////////////////////////////////////////////////////////////
  54. #endif // VIRTUALTREECTRL_H