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

📄 paintdoc.h

📁 API经典入门
💻 H
字号:
// paintdoc.h : interface of the CPaintDoc class
//
/////////////////////////////////////////////////////////////////////////////

#define NO_SHAPE 0
#define ELLIPSE 1 
#define ARC 2
#define PIE 3
#define CHORD 4
#define RECTANGLE 5
#define ROUNDRECT 6
#define POLYLINE 7
#define POLYGON 8

#define MAX_SIZE 8

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

// Attributes
public:
	CPoint m_acPoints[MAX_SIZE];
	int m_nArraySize;
	int m_nTopElement;

	BOOL m_bDrawPoints;	
	COLORREF m_nBColor, m_nPColor;
	int m_nBStyle, m_nPStyle;
	CString m_csBStyle, m_csPStyle;
	int m_nShape;
	int m_nShapeSize;
	
	int m_nPolyFill;
	int m_nROP2Mode;
	CString m_csROP2;

// Operations
public:

// Implementation
public:
	virtual ~CPaintDoc();
	virtual void Serialize(CArchive& ar);   // overridden for document i/o
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
	virtual BOOL OnNewDocument();

// Generated message map functions
protected:
	//{{AFX_MSG(CPaintDoc)
	afx_msg void OnShapesArc();
	afx_msg void OnUpdateShapesArc(CCmdUI* pCmdUI);
	afx_msg void OnShapesChord();
	afx_msg void OnUpdateShapesChord(CCmdUI* pCmdUI);
	afx_msg void OnShapesEllipse();
	afx_msg void OnUpdateShapesEllipse(CCmdUI* pCmdUI);
	afx_msg void OnShapesPie();
	afx_msg void OnUpdateShapesPie(CCmdUI* pCmdUI);
	afx_msg void OnShapesPolygon();
	afx_msg void OnUpdateShapesPolygon(CCmdUI* pCmdUI);
	afx_msg void OnShapesPolyline();
	afx_msg void OnUpdateShapesPolyline(CCmdUI* pCmdUI);
	afx_msg void OnShapesRectange();
	afx_msg void OnUpdateShapesRectange(CCmdUI* pCmdUI);
	afx_msg void OnShapesRoundrect();
	afx_msg void OnUpdateShapesRoundrect(CCmdUI* pCmdUI);
	afx_msg void OnOptionsDrawpoints();
	afx_msg void OnUpdateOptionsDrawpoints(CCmdUI* pCmdUI);
	afx_msg void OnModesPolyfill();
	afx_msg void OnUpdateModesPolyfill(CCmdUI* pCmdUI);
	afx_msg void OnModesRop2();
	afx_msg void OnUpdateModesRop2(CCmdUI* pCmdUI);
	afx_msg void OnOptionsBrushstyle();
	afx_msg void OnUpdateOptionsBrushstyle(CCmdUI* pCmdUI);
	afx_msg void OnOptionsPenstyle();
	afx_msg void OnUpdateOptionsPenstyle(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

⌨️ 快捷键说明

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