smallcad203doc.h

来自「一个简单的画图程序 可以画点线面等」· C头文件 代码 · 共 78 行

H
78
字号
// SmallCAD203Doc.h : interface of the CSmallCAD203Doc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_SmallCAD203DOC_H__EEBB7B5C_385E_4711_8D45_E5C586714B31__INCLUDED_)
#define AFX_SmallCAD203DOC_H__EEBB7B5C_385E_4711_8D45_E5C586714B31__INCLUDED_

#include "Function.h"
#include "Graph.h"	// Added by ClassView
#include "GraphList.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CSmallCAD203Doc : public CDocument
{
protected: // create from serialization only
	CSmallCAD203Doc();
	DECLARE_DYNCREATE(CSmallCAD203Doc)

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSmallCAD203Doc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	//}}AFX_VIRTUAL

// Implementation
public:
	
	int GetGraphNumber();
	int GetCurrentScale();
	void SetCurrentScale(int scale);
	COLORREF GetCurrentColor();
	void SetCurrentColor(COLORREF color);
	CGraph *GetGraph(int idx);
	void AddGraph(CGraph *g);
	CFunction * GetCurrentFunction();
	void SetCurrentFunction(CFunction *F);
	virtual ~CSmallCAD203Doc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

public:	CGraphList my_list;
// Generated message map functions
protected:

	int m_nGraphNumber;
	int m_currentScale;
	COLORREF m_currentColor;
//	CGraph *m_pGraphList[1000];
	CFunction *m_pCurrentFunction;
	//{{AFX_MSG(CSmallCAD203Doc)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SmallCAD203DOC_H__EEBB7B5C_385E_4711_8D45_E5C586714B31__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?