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

📄 geditordoc.h

📁 一个复杂的画图系统
💻 H
字号:
// geditorDoc.h : interface of the CGeditorDoc class///////////////////////////////////////////////////////////////////////////////#if !defined(AFX_GEDITORDOC_H__F0FB63EB_F735_11D2_B2E0_A1874FE1ADE4__INCLUDED_)#define AFX_GEDITORDOC_H__F0FB63EB_F735_11D2_B2E0_A1874FE1ADE4__INCLUDED_#if _MSC_VER >= 1000#pragma once#endif // _MSC_VER >= 1000#include "Line.h"#include "Polygon.h"#include "MyRect.h"#include "Ellipse.h"#include "Bezier.h"#include "FillPat.h"
#include "text.h"class CGeditorDoc : public CDocument{protected: // create from serialization only	CGeditorDoc();	DECLARE_DYNCREATE(CGeditorDoc)// Attributespublic:	unsigned int	m_curColor;	WORD			m_wToolType,m_wToolles;
	CString         objitems;
	CTypedPtrList<CObList, CShape*> m_shapeList;
	int NumLine,NumPgn,NumRec,NumEls,NumBez,NumText;
	int nObjectCount;	//CTypedPtrList<CObList, CLine*> m_lineList;	//CTypedPtrList<CObList,CPolygon*> m_pgnList;	//CTypedPtrList<CObList,CMyRect*>	m_rectList;	//CTypedPtrList<CObList,CEllipse*> m_ellipseList;	//CTypedPtrList<CObList,CBezier*> m_bezierList;// Operationspublic:   CPoint Start,End;
   int open;
   CShape *CurObj;
   int CurObjNum;// Overrides	// ClassWizard generated virtual function overrides	//{{AFX_VIRTUAL(CGeditorDoc)	public:	virtual BOOL OnNewDocument();	virtual void Serialize(CArchive& ar);	virtual void DeleteContents();	//}}AFX_VIRTUAL// Implementationpublic:	void LoadFile(CArchive& ar);	void SaveFile(CArchive& ar);	virtual ~CGeditorDoc();#ifdef _DEBUG	virtual void AssertValid() const;	virtual void Dump(CDumpContext& dc) const;#endifprotected:// Generated message map functionsprotected:	//{{AFX_MSG(CGeditorDoc)	afx_msg void OnFileOpen();	afx_msg void OnFileSave();	afx_msg void OnFileSaveAs();	//}}AFX_MSG	DECLARE_MESSAGE_MAP()};///////////////////////////////////////////////////////////////////////////////{{AFX_INSERT_LOCATION}}// Microsoft Developer Studio will insert additional declarations immediately before the previous line.#endif // !defined(AFX_GEDITORDOC_H__F0FB63EB_F735_11D2_B2E0_A1874FE1ADE4__INCLUDED_)

⌨️ 快捷键说明

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