12345678910111213141516171819202122232425262728293031323334353637383940 |
- // CGraph.h: interface for the CGraph class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_MYCPICTURE_H__A993915F_6B3B_4DFF_8DC1_1D8E936E5D54__INCLUDED_)
- #define AFX_MYCPICTURE_H__A993915F_6B3B_4DFF_8DC1_1D8E936E5D54__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #define GRAPH_DEBUG 1
- #define OCX_MAX_NUM 20
- class CGraph
- {
- public:
- BYTE m_Type;
- CSize m_sizePic;
- CSize m_sizeGrid;
- BOOL m_bGrid;
- COLORREF m_clrBack;
- CDrawObjList m_DrawObjList;
- public:
- CView* m_pView;
- CString m_strPicFile;
- public:
- CGraph(CSize size);
- ~CGraph(void);
- void SetPicFile(CString strPicFile);
- void SetView(CView* pView);
- void Load(void);
- void Store(void);
- CRect Draw(CDC* pDC,CString &sOCXPath,int &iOcxIndex,BOOL bPrint = FALSE);
- void Print(CDC* pDC);
- void Fresh(void);
- void RefreshAllVars(void);
- };
- #endif // !defined(AFX_MYCPICTURE_H__A993915F_6B3B_4DFF_8DC1_1D8E936E5D54__INCLUDED_)
|