GroupWnd.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #pragma once
  2. #include "DittoWindow.h"
  3. #include "GroupTree.h"
  4. #include "MagneticWnd.h"
  5. #include "AlphaBlend.h"
  6. class CGroupWnd : public CMagneticWnd
  7. {
  8. DECLARE_DYNAMIC(CGroupWnd)
  9. public:
  10. CGroupWnd();
  11. virtual ~CGroupWnd();
  12. protected:
  13. CDittoWindow m_DittoWindow;
  14. CGroupTree m_Tree;
  15. long m_lSelectedGroup;
  16. HWND m_hwndNotify;
  17. CToolBar m_ToolBar;
  18. CSliderCtrl m_Transparency;
  19. CAlphaBlend m_Alpha;
  20. void MoveControls();
  21. public:
  22. void SetNotifyWnd(HWND hWnd) { m_hwndNotify = hWnd; m_Tree.SetNotificationWndEx(hWnd); }
  23. void SetSelectedGroup(long lGroup) { m_lSelectedGroup = lGroup; }
  24. void RefreshTree(long lSelectedGroup);
  25. protected:
  26. DECLARE_MESSAGE_MAP()
  27. public:
  28. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  29. afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point);
  30. afx_msg void OnNcLButtonUp(UINT nHitTest, CPoint point);
  31. afx_msg void OnNcMouseMove(UINT nHitTest, CPoint point);
  32. virtual BOOL PreTranslateMessage(MSG* pMsg);
  33. afx_msg void OnNcLButtonDblClk(UINT nHitTest, CPoint point);
  34. afx_msg void OnNcPaint();
  35. afx_msg void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR* lpncsp);
  36. afx_msg UINT OnNcHitTest(CPoint point);
  37. afx_msg void OnSize(UINT nType, int cx, int cy);
  38. void OnRefresh();
  39. void OnPin();
  40. void OnNewGroup();
  41. afx_msg void OnClose();
  42. afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  43. afx_msg void OnDestroy();
  44. void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
  45. };