GroupTree.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #if !defined(AFX_GROUPTREE_H__A1F01358_5440_45A8_B402_3F32F46FCAA5__INCLUDED_)
  2. #define AFX_GROUPTREE_H__A1F01358_5440_45A8_B402_3F32F46FCAA5__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // GroupTree.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CGroupTree window
  10. class CGroupTree : public CTreeCtrl
  11. {
  12. // Construction
  13. public:
  14. CGroupTree();
  15. // Attributes
  16. public:
  17. // Operations
  18. public:
  19. void FillTree();
  20. void SetNotificationWndEx(HWND hWnd) { m_NotificationWnd = hWnd; }
  21. bool m_bHide;
  22. long m_lSelectedFolderID;
  23. protected:
  24. void FillTree(long lParentID, HTREEITEM hParent);
  25. void SendToParent(long lID);
  26. HWND m_NotificationWnd;
  27. CBitmap m_bmOpenFolder;
  28. CBitmap m_bmClosedFolder;
  29. bool m_bSendAllready;
  30. // Overrides
  31. // ClassWizard generated virtual function overrides
  32. //{{AFX_VIRTUAL(CGroupTree)
  33. public:
  34. virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
  35. //}}AFX_VIRTUAL
  36. // Implementation
  37. public:
  38. virtual ~CGroupTree();
  39. // Generated message map functions
  40. protected:
  41. //{{AFX_MSG(CGroupTree)
  42. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  43. afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
  44. afx_msg void OnKillFocus(CWnd* pNewWnd);
  45. afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
  46. afx_msg void OnDblclk(NMHDR* pNMHDR, LRESULT* pResult);
  47. afx_msg void OnKeydown(NMHDR* pNMHDR, LRESULT* pResult);
  48. //}}AFX_MSG
  49. DECLARE_MESSAGE_MAP()
  50. // Generated OLE dispatch map functions
  51. //{{AFX_DISPATCH(CGroupTree)
  52. // NOTE - the ClassWizard will add and remove member functions here.
  53. //}}AFX_DISPATCH
  54. };
  55. /////////////////////////////////////////////////////////////////////////////
  56. //{{AFX_INSERT_LOCATION}}
  57. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  58. #endif // !defined(AFX_GROUPTREE_H__A1F01358_5440_45A8_B402_3F32F46FCAA5__INCLUDED_)