EditFrameWnd.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #pragma once
  2. #include "EditWnd.h"
  3. #include "ClipIds.h"
  4. #include "DittoWindow.h"
  5. #include "SnapWindow.h"
  6. class CEditFrameWnd : public CFrameWnd
  7. {
  8. DECLARE_DYNCREATE(CEditFrameWnd)
  9. CEditFrameWnd();
  10. bool EditIds(CClipIDs &Ids);
  11. void SetNotifyWnd(HWND hWnd) { m_hNotifyWnd = hWnd; }
  12. bool CloseAll();
  13. protected:
  14. virtual ~CEditFrameWnd();
  15. CEditWnd m_EditWnd;
  16. HWND m_hNotifyWnd;
  17. CDittoWindow m_DittoWindow;
  18. CRect m_crIcon;
  19. SnapWindow m_snap;
  20. protected:
  21. DECLARE_MESSAGE_MAP()
  22. void MoveControls();
  23. public:
  24. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  25. afx_msg void OnDestroy();
  26. afx_msg void OnSize(UINT nType, int cx, int cy);
  27. afx_msg void OnDummy();
  28. afx_msg void OnNcPaint();
  29. afx_msg void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR* lpncsp);
  30. afx_msg HITTEST_RET OnNcHitTest(CPoint point);
  31. protected:
  32. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  33. public:
  34. afx_msg void OnSetFocus(CWnd* pOldWnd);
  35. afx_msg void OnClose();
  36. afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point);
  37. afx_msg void OnNcLButtonUp(UINT nHitTest, CPoint point);
  38. afx_msg void OnNcMouseMove(UINT nHitTest, CPoint point);
  39. virtual BOOL PreTranslateMessage(MSG* pMsg);
  40. afx_msg void OnNcLButtonDblClk(UINT nHitTest, CPoint point);
  41. afx_msg void OnWindowPosChanging(WINDOWPOS* lpwndpos);
  42. afx_msg void OnTimer(UINT_PTR nIDEvent);
  43. afx_msg LRESULT OnDpiChanged(WPARAM wParam, LPARAM lParam);
  44. afx_msg void OnMoving(UINT fwSide, LPRECT pRect);
  45. afx_msg void OnEnterSizeMove();
  46. };