EditWnd.h 1002 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #pragma once
  2. #include "DittoRulerRichEditCtrl.h"
  3. #include "TabCtrl.h"
  4. #include "ClipIds.h"
  5. class CEditWnd : public CWnd
  6. {
  7. DECLARE_DYNAMIC(CEditWnd)
  8. public:
  9. CEditWnd();
  10. virtual ~CEditWnd();
  11. bool EditIds(CClipIDs &Ids);
  12. bool CloseEdits(bool bPrompt);
  13. protected:
  14. DECLARE_MESSAGE_MAP()
  15. CTabCtrlEx m_Tabs;
  16. CToolBar m_ToolBar;
  17. CToolTipCtrl m_ToolTip;
  18. std::vector<CDittoRulerRichEditCtrl*> m_Edits;
  19. CButton m_cbUpdateDescription;
  20. CFont m_Font;
  21. long m_lLastSaveID;
  22. protected:
  23. void MoveControls();
  24. long IsIDAlreadyInEdit(long lID, bool bSetFocus);
  25. bool AddItem(long lID);
  26. bool DoSave();
  27. bool DoSaveItem(long lIndex);
  28. public:
  29. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  30. afx_msg void OnSize(UINT nType, int cx, int cy);
  31. afx_msg void OnSave();
  32. afx_msg void OnDestroy();
  33. afx_msg void OnSaveAll();
  34. afx_msg void OnClose();
  35. afx_msg void OnNew();
  36. afx_msg void OnSaveCloseClipboard();
  37. afx_msg void OnSetFocus(CWnd* pOldWnd);
  38. virtual BOOL PreTranslateMessage(MSG* pMsg);
  39. };