line.h

来自「学习VC的一些例子」· C头文件 代码 · 共 30 行

H
30
字号
// Line.h: interface for the CLine class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_LINE_H__9D6529A2_8661_11D5_BB9F_00A0C9E321FD__INCLUDED_)
#define AFX_LINE_H__9D6529A2_8661_11D5_BB9F_00A0C9E321FD__INCLUDED_

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

class CLine : public CObject  
{
	DECLARE_SERIAL (CLine)
public:
	void Serialize(CArchive &ar);
	void Draw(CDC *pDC);
	CLine(CPoint ptFrom, CPoint ptTo, COLORREF crColor, UINT nWidth);
	CLine();
	virtual ~CLine();

private:
	COLORREF m_crColor;
	CPoint m_ptTo;
	CPoint m_ptFrom;
	UINT m_nWidth;
};

#endif // !defined(AFX_LINE_H__9D6529A2_8661_11D5_BB9F_00A0C9E321FD__INCLUDED_)

⌨️ 快捷键说明

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