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

📄 rectangle.h

📁 画简单的图形用VC++开发的利用鼠标响应程序的实行
💻 H
字号:
// Rectangle.h: interface for the CRectangle class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_RECTANGLE_H__1349D6A2_E9EF_4336_AA7D_841AE81DFDD8__INCLUDED_)
#define AFX_RECTANGLE_H__1349D6A2_E9EF_4336_AA7D_841AE81DFDD8__INCLUDED_

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

class CRectangle : public CObject  
{
public:
	DECLARE_SERIAL(CRectangle)
	void SetColor(COLORREF c);
	COLORREF GetColor();
	int GetWidth();
	void SetWidth(int w);
	void SetEnd(CPoint p);
	void SetStart(CPoint p);
	CPoint GetEnd();
	CPoint GetStart();
	virtual void Serialize(CArchive &ar);
	
	CRectangle(CPoint p1,CPoint p2,int w,COLORREF c);
	CRectangle();
	virtual ~CRectangle();

protected:
	COLORREF color;
	CPoint end;
	CPoint start;
	int width;
};

#endif // !defined(AFX_RECTANGLE_H__1349D6A2_E9EF_4336_AA7D_841AE81DFDD8__INCLUDED_)

⌨️ 快捷键说明

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