GroupTree.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. long GetSelectedTree();
  24. protected:
  25. void FillTree(long lParentID, HTREEITEM hParent);
  26. void SendToParent(long lID);
  27. HWND m_NotificationWnd;
  28. CBitmap m_bmOpenFolder;
  29. CBitmap m_bmClosedFolder;
  30. bool m_bSendAllready;
  31. // Overrides
  32. // ClassWizard generated virtual function overrides
  33. //{{AFX_VIRTUAL(CGroupTree)
  34. public:
  35. virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
  36. //}}AFX_VIRTUAL
  37. // Implementation
  38. public:
  39. virtual ~CGroupTree();
  40. // Generated message map functions
  41. protected:
  42. //{{AFX_MSG(CGroupTree)
  43. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  44. afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
  45. afx_msg void OnKillFocus(CWnd* pNewWnd);
  46. afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
  47. afx_msg void OnDblclk(NMHDR* pNMHDR, LRESULT* pResult);
  48. afx_msg void OnKeydown(NMHDR* pNMHDR, LRESULT* pResult);
  49. //}}AFX_MSG
  50. DECLARE_MESSAGE_MAP()
  51. // Generated OLE dispatch map functions
  52. //{{AFX_DISPATCH(CGroupTree)
  53. // NOTE - the ClassWizard will add and remove member functions here.
  54. //}}AFX_DISPATCH
  55. };
  56. /////////////////////////////////////////////////////////////////////////////
  57. //{{AFX_INSERT_LOCATION}}
  58. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  59. #endif // !defined(AFX_GROUPTREE_H__A1F01358_5440_45A8_B402_3F32F46FCAA5__INCLUDED_)