gdrawdoc.h

来自「VS2005 MFC 实现的画图程序」· C头文件 代码 · 共 80 行

H
80
字号
// GDrawDoc.h : CGDrawDoc 类的接口
//


#pragma once



class CGDrawDoc : public CDocument
{
protected: // 仅从序列化创建
	CGDrawDoc();
	DECLARE_DYNCREATE(CGDrawDoc)

// 属性
public:
	
	int size;
	COLORREF bg_color;
    struct pro{
		int shape;
		COLORREF colors,fill_color;

		int px;
		int py;
		int ppx;
		int ppy;
		int type;
		int wide;
		int count;
		CPoint *p;
	}*ptr;

	int height;
	int width;


//	 Graph_Union m_gp;
// 操作
public:

// 重写
public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);

// 实现
public:
	virtual ~CGDrawDoc();

#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// 生成的消息映射函数
protected:
	DECLARE_MESSAGE_MAP()

public:
	afx_msg void OnSave();
public:
	afx_msg void OnHide();
public:
	afx_msg void OnLine();
public:
	afx_msg void OnBkL();
public:
	afx_msg void OnCircle();
public:
	afx_msg void OnSelectGraph();
afx_msg void setfill();
public:
	afx_msg void OnRailway();
};


⌨️ 快捷键说明

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