⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 drawingdoc.h

📁 软件参考Windows操作系统下的画图程序
💻 H
字号:
// DrawingDoc.h : interface of the CDrawingDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_DRAWINGDOC_H__0DEABA1B_90B4_11D7_908A_00A00CC807C7__INCLUDED_)
#define AFX_DRAWINGDOC_H__0DEABA1B_90B4_11D7_908A_00A00CC807C7__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "ColorPane.h"
#include "PolyBar.h"

typedef vector<GeoPoint> GeoPointVect;
typedef vector<GeoLine> GeoLineVect;
typedef vector<GeoRect> GeoRectVect;
typedef vector<GeoCircle> GeoCircleVect;
typedef vector<GeoPolygon> GeoPolygonVect;

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

// Attributes
public:

// Operations
public:

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

// Implementation
public:
	virtual ~CDrawingDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CDrawingDoc)
	afx_msg void OnFileNew();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	void Add(GeoPolygon _polygon);	//函数重载
	void Add(GeoCircle _circle);
	void Add(GeoRect _rect);
	void Add(GeoLine _line);
	void Add(GeoPoint _point);
	GeoPointVect	point;			//记录点.线......
	GeoLineVect		line;
	GeoRectVect		rect;
	GeoCircleVect	circle;
	GeoPolygonVect	polygon;
	static long m_slSum;			//记录图元总数
};

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

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

#endif // !defined(AFX_DRAWINGDOC_H__0DEABA1B_90B4_11D7_908A_00A00CC807C7__INCLUDED_)

⌨️ 快捷键说明

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