geditordoc.h

来自「一个复杂的画图系统」· C头文件 代码 · 共 82 行

H
82
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?