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

📄 drawdoc.h

📁 C++视图的程序
💻 H
字号:
// DrawDoc.h : interface of the CDrawDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_DRAWDOC_H__EA16711B_C223_40B3_8D42_F190403AE16A__INCLUDED_)
#define AFX_DRAWDOC_H__EA16711B_C223_40B3_8D42_F190403AE16A__INCLUDED_

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

#include "shape.h"

class CDrawDoc : public CDocument
{
protected: // create from serialization only
	CDrawDoc();
	DECLARE_DYNCREATE(CDrawDoc)
protected:
	CObArray m_ObArray;
public:
    int m_pWidth;
	int m_pStyle;
	COLORREF m_pColor;
    int m_FFlag;
	COLORREF m_FColor;
	int m_Hatch;
	int m_HFlag;

    int CurrentDraw;
	int DrawType;
// Operations
public:
    void AddShape(CShape *pShape);
	CShape *GetShape(int index);
	int GetShapeNumber();
// Attributes
public:

// Operations
public:

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

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CDrawDoc)
	afx_msg void OnEditUndo();
	afx_msg void OnUpdateEditUndo(CCmdUI* pCmdUI);
	afx_msg void OnDrawVcline();
	afx_msg void OnDrawVccircle();
	afx_msg void OnDrawVcellipse();
	afx_msg void OnDrawBezier();
	afx_msg void OnDrawPolygon();
	afx_msg void OnDrawRectangle();
	afx_msg void OnOptionsColor();
	afx_msg void OnOptionsFillcolor();
	afx_msg void OnOptionsHatchb();
	afx_msg void OnOptionsHatchc();
	afx_msg void OnOptionsHatchd();
	afx_msg void OnOptionsHatchf();
	afx_msg void OnOptionsHatchh();
	afx_msg void OnOptionsHatchnull();
	afx_msg void OnOptionsHatchv();
	afx_msg void OnOptionsPen();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_DRAWDOC_H__EA16711B_C223_40B3_8D42_F190403AE16A__INCLUDED_)

⌨️ 快捷键说明

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