📄 geopoint.h
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -