geoobject.h

来自「VC++开发广州市交通运输干线」· C头文件 代码 · 共 59 行

H
59
字号
// GeoObject.h: interface for the CGeoObject class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_GEOOBJECT_H__40168FF9_06F4_487D_90CF_3382CA82E4EC__INCLUDED_)
#define AFX_GEOOBJECT_H__40168FF9_06F4_487D_90CF_3382CA82E4EC__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "vector"
using namespace std;
class CGeoObject// : public CObject  //地图对象的基类
{
public:
	void GetAttriCode(int &attriCode);
	void SetAttriCode(int attriCode);
//	virtual void Draw(CDC *pDC) =0;
	CGeoObject();
	virtual ~CGeoObject();
protected:
	int m_attriCode;		//地理对象的属性码
	CString m_strName;
private:
};

//

class CGeoPointXY
{
public:
	float X;
	float Y;
};
class CGeoPen
{
public:
		int nPenStyle;
		int nWidth;
		COLORREF crColor;
};
class CGeoBrush
{
public:
	int nIndex;
	COLORREF crColor;
	CBitmap* pBitmap ;
};
class CGeoRect
{
public:
	BOOL PtInGeoRect(POINT mousepoint);
	float left;
	float bottom;
	float right;
	float top;
};
#endif // !defined(AFX_GEOOBJECT_H__40168FF9_06F4_487D_90CF_3382CA82E4EC__INCLUDED_)

⌨️ 快捷键说明

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