HDrawDoc.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. // HDrawDoc.h : interface of the CHDrawDoc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_HDRAWDOC_H__70CA8453_799B_44C5_BE7E_3965B9DE3A55__INCLUDED_)
  5. #define AFX_HDRAWDOC_H__70CA8453_799B_44C5_BE7E_3965B9DE3A55__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "HStroke.h"
  10. #include "HStrokeEditDlg.h"
  11. #include "HStrokeTextDlg.h"
  12. class CHDrawDoc : public CDocument
  13. {
  14. protected: // create from serialization only
  15. CHDrawDoc();
  16. DECLARE_DYNCREATE(CHDrawDoc)
  17. // Attributes
  18. public:
  19. // Operations
  20. public:
  21. // Overrides
  22. // ClassWizard generated virtual function overrides
  23. //{{AFX_VIRTUAL(CHDrawDoc)
  24. public:
  25. virtual BOOL OnNewDocument();
  26. virtual void Serialize(CArchive& ar);
  27. virtual void DeleteContents();
  28. //}}AFX_VIRTUAL
  29. // Implementation
  30. public:
  31. int m_backup_index;
  32. void ReStore(BOOL backward);
  33. void BackUp();
  34. CStringArray m_backup;
  35. int m_picStyle;
  36. UINT m_cavasH;
  37. UINT m_cavasW;
  38. UINT m_picWidth;
  39. COLORREF m_picColor;
  40. CString m_picInfo;
  41. HStroke * NewStroke();
  42. HPicType m_picType;
  43. CTypedPtrArray<CObArray, HStroke *> m_strokeList;
  44. virtual ~CHDrawDoc();
  45. #ifdef _DEBUG
  46. virtual void AssertValid() const;
  47. virtual void Dump(CDumpContext& dc) const;
  48. #endif
  49. protected:
  50. // Generated message map functions
  51. protected:
  52. //{{AFX_MSG(CHDrawDoc)
  53. afx_msg void OnDrawClear();
  54. afx_msg void OnDrawEllipse();
  55. afx_msg void OnDrawLine();
  56. afx_msg void OnDrawPoly();
  57. afx_msg void OnDrawRect();
  58. afx_msg void OnDrawSet();
  59. afx_msg void OnDrawText();
  60. afx_msg void OnBtW1();
  61. afx_msg void OnBtW2();
  62. afx_msg void OnBtW3();
  63. afx_msg void OnUpdateBtW1(CCmdUI* pCmdUI);
  64. afx_msg void OnUpdateBtW2(CCmdUI* pCmdUI);
  65. afx_msg void OnUpdateBtW3(CCmdUI* pCmdUI);
  66. afx_msg void OnUpdateDrawEllipse(CCmdUI* pCmdUI);
  67. afx_msg void OnUpdateDrawLine(CCmdUI* pCmdUI);
  68. afx_msg void OnUpdateDrawPoly(CCmdUI* pCmdUI);
  69. afx_msg void OnUpdateDrawRect(CCmdUI* pCmdUI);
  70. afx_msg void OnUpdateDrawText(CCmdUI* pCmdUI);
  71. afx_msg void OnPenDash();
  72. afx_msg void OnUpdatePenDash(CCmdUI* pCmdUI);
  73. afx_msg void OnPenSolid();
  74. afx_msg void OnUpdatePenSolid(CCmdUI* pCmdUI);
  75. afx_msg void OnUpdateEditUndo(CCmdUI* pCmdUI);
  76. afx_msg void OnUpdateEditRedo(CCmdUI* pCmdUI);
  77. afx_msg void OnEditRedo();
  78. afx_msg void OnEditUndo();
  79. afx_msg void OnSelect();
  80. afx_msg void OnUpdateSelect(CCmdUI* pCmdUI);
  81. //}}AFX_MSG
  82. DECLARE_MESSAGE_MAP()
  83. };
  84. ////////////////////////////////////////////////////////////////////////////
  85. //{{AFX_INSERT_LOCATION}}
  86. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  87. #endif // !defined(AFX_HDRAWDOC_H__70CA8453_799B_44C5_BE7E_3965B9DE3A55__INCLUDED_)