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

📄 line.h

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

#if !defined(AFX_LINE_H__3C240AEC_EF05_48B7_A2FC_9F81DF5148B2__INCLUDED_)
#define AFX_LINE_H__3C240AEC_EF05_48B7_A2FC_9F81DF5148B2__INCLUDED_

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

class CLine : public CObject  
{
	DECLARE_SERIAL(CLine)
public:
	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);
	CLine(CPoint p1,CPoint p2,int w,COLORREF c);
	CLine();
	virtual ~CLine();

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

#endif // !defined(AFX_LINE_H__3C240AEC_EF05_48B7_A2FC_9F81DF5148B2__INCLUDED_)

⌨️ 快捷键说明

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