EditFrameWnd.h 1.3 KB

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