ch1_1Doc.h
上传用户:gdjinyi
上传日期:2013-02-01
资源大小:1701k
文件大小:2k
源码类别:

源码/资料

开发平台:

Visual C++

  1. // ch1_1Doc.h : interface of the CCh1_1Doc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_CH1_1DOC_H__766DD4EA_BF18_426A_BA52_B747D78F541C__INCLUDED_)
  5. #define AFX_CH1_1DOC_H__766DD4EA_BF18_426A_BA52_B747D78F541C__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "dibapi.h"
  10. #include "PointTrans.h"
  11. #include "geotrans.h"
  12. #include "TemplateTrans.h"
  13. #include "FreTrans.h"
  14. #include "morph.h"
  15. #include "edgecontour.h"
  16. #include "detect.h"
  17. #include "restore.h"
  18. #include "GIFAPI.h"
  19. class CCh1_1Doc : public CDocument
  20. {
  21. protected: // create from serialization only
  22. CCh1_1Doc();
  23. DECLARE_DYNCREATE(CCh1_1Doc)
  24. // Attributes
  25. public:
  26. HDIB GetHDIB() const
  27. { return m_hDIB; }
  28. CPalette* GetDocPalette() const
  29. { return m_palDIB; }
  30. CSize GetDocSize() const
  31. { return m_sizeDoc; }
  32. // Operations
  33. public:
  34. // Overrides
  35. // ClassWizard generated virtual function overrides
  36. //{{AFX_VIRTUAL(CCh1_1Doc)
  37. public:
  38. virtual BOOL OnNewDocument();
  39. virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
  40. virtual BOOL CanCloseFrame(CFrameWnd* pFrame);
  41. virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
  42. virtual void DeleteContents();
  43. //}}AFX_VIRTUAL
  44. // Implementation
  45. public:
  46. int m_nColorIndex;
  47. void ReplaceHDIB(HDIB hDIB);
  48. void InitDIBData();
  49. virtual ~CCh1_1Doc();
  50. COLORREF m_refColorBKG; // 背景色
  51. #ifdef _DEBUG
  52. virtual void AssertValid() const;
  53. virtual void Dump(CDumpContext& dc) const;
  54. #endif
  55. protected:
  56. // Generated message map functions
  57. protected:
  58. //{{AFX_MSG(CCh1_1Doc)
  59. afx_msg void OnFileReopen();
  60. //}}AFX_MSG
  61. DECLARE_MESSAGE_MAP()
  62. protected:
  63. HDIB m_hDIB;
  64. CPalette* m_palDIB;
  65. CSize m_sizeDoc;
  66. };
  67. /////////////////////////////////////////////////////////////////////////////
  68. //{{AFX_INSERT_LOCATION}}
  69. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  70. #endif // !defined(AFX_CH1_1DOC_H__766DD4EA_BF18_426A_BA52_B747D78F541C__INCLUDED_)