geopoint.h

来自「软件参考Windows操作系统下的画图程序」· C头文件 代码 · 共 39 行

H
39
字号
// GeoPoint.h: interface for the GeoPoint class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_GEOPOINT_H__D5977F55_9183_11D7_908B_00A00CC807C7__INCLUDED_)
#define AFX_GEOPOINT_H__D5977F55_9183_11D7_908B_00A00CC807C7__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//
//一点类
//
#include "GeoObject.h"

class GeoPoint : public GeoObject  
{
public:
	GeoPoint();
	GeoPoint(int x, int y)
	{
		m_pPoint.x = x;
		m_pPoint.y = y;
	}
	GeoPoint(CPoint pt)
	{
		m_pPoint.x = pt.x;
		m_pPoint.y = pt.y;
	}
	void SetPoint(CPoint pt) { m_pPoint = pt; }
	virtual ~GeoPoint();
	void Draw(CDC &dc);
	CPoint GetPoint() { return m_pPoint; }
private:
	CPoint m_pPoint;
};

#endif // !defined(AFX_GEOPOINT_H__D5977F55_9183_11D7_908B_00A00CC807C7__INCLUDED_)

⌨️ 快捷键说明

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