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

📄 myworkdoc.h

📁 这是我做的关于图形编辑的小程序,跟大家沟通以下哦呵呵.
💻 H
字号:
// MyWorkDoc.h : interface of the CMyWorkDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MYWORKDOC_H__4EFB5508_7C28_4608_A6D7_CA164AB63194__INCLUDED_)
#define AFX_MYWORKDOC_H__4EFB5508_7C28_4608_A6D7_CA164AB63194__INCLUDED_

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

#define PLOYGONNUM 100

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

// Attributes
public:

// Operations
public:

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

// Implementation
public:
	void DrawPloygon(CDC *pDC);
	void AddPloygon(CPoint *m_Ploy,int m_numPloy);
	int m_Point[500] [4];
	int m_Rect[500][4];
    int m_Tria[500][5];
    int m_Pixel[500][3];
	int m_Line[500][7];
	int m_Rectangle[500][7];
    int m_Ellipse[500][7];
	int m_Text[500][3];
	CString m_TextStr[500][1];
	int m_nTextNum;
	int m_nPointNum;
	int m_nRectNum;
	int m_nTriaNum;
	int m_PixelNum;
	int m_nLineNum;
    int m_nRectangleNum;
	int m_nEllipseNum;
	COLORREF m_BrushClr;
    COLORREF m_RectBrushClr;
    COLORREF m_TriaBrushClr;
	
	int m_nPloy;
	CPoint * m_Ploygon;
	
	virtual ~CMyWorkDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMyWorkDoc)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_MYWORKDOC_H__4EFB5508_7C28_4608_A6D7_CA164AB63194__INCLUDED_)

⌨️ 快捷键说明

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