EditFrameWnd.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. };