Graph.h 953 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // CGraph.h: interface for the CGraph class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_MYCPICTURE_H__A993915F_6B3B_4DFF_8DC1_1D8E936E5D54__INCLUDED_)
  5. #define AFX_MYCPICTURE_H__A993915F_6B3B_4DFF_8DC1_1D8E936E5D54__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #define GRAPH_DEBUG 1
  10. #define OCX_MAX_NUM 20
  11. class CGraph
  12. {
  13. public:
  14. BYTE m_Type;
  15. CSize m_sizePic;
  16. CSize m_sizeGrid;
  17. BOOL m_bGrid;
  18. COLORREF m_clrBack;
  19. CDrawObjList m_DrawObjList;
  20. public:
  21. CView* m_pView;
  22. CString m_strPicFile;
  23. public:
  24. CGraph(CSize size);
  25. ~CGraph(void);
  26. void SetPicFile(CString strPicFile);
  27. void SetView(CView* pView);
  28. void Load(void);
  29. void Store(void);
  30. CRect Draw(CDC* pDC,CString &sOCXPath,int &iOcxIndex,BOOL bPrint = FALSE);
  31. void Print(CDC* pDC);
  32. void Fresh(void);
  33. void RefreshAllVars(void);
  34. };
  35. #endif // !defined(AFX_MYCPICTURE_H__A993915F_6B3B_4DFF_8DC1_1D8E936E5D54__INCLUDED_)