graph_union.h

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

H
30
字号

#pragma once
class Graph_Union: public CObject
{
	protected:
	DECLARE_SERIAL(Graph_Union)
	//DECLARE_SERIAL(Graph_Union)
public:
	int type;   //the type of graphics:0 line; 1 circle; 2 ellipse; and so on;
	int count;   //the counter of points
	CPoint * pp;  //ptr of points
	int wide;     //the pen wide
	int shape;    //the shape of line
	COLORREF color;   //default:black;
	COLORREF fill_color;//default:white;
	Graph_Union(int t,int c,int w,int s,CPoint* ptr,COLORREF col,COLORREF f_col);//default function
	Graph_Union();//NULL union
	void operator =(Graph_Union & gu);   //operator =
	Graph_Union( const Graph_Union & gu); //copy function
	~Graph_Union();
	void Serialize(CArchive&ar);



	int pycount;
	COLORREF pylinecol;
	COLORREF pyfilcol;
  //  CPoint pypt[30];

};

⌨️ 快捷键说明

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