📄 geoobject.cpp
字号:
// GeoObject.cpp: implementation of the CGeoObject class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "DigitalMap.h"
#include "GeoObject.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CGeoObject::CGeoObject()
{
}
CGeoObject::~CGeoObject()
{
}
void CGeoObject::SetAttriCode(int attriCode)
{
m_attriCode = attriCode;
}
void CGeoObject::GetAttriCode(int &attriCode)
{
attriCode = m_attriCode;
}
BOOL CGeoRect::PtInGeoRect(POINT mousepoint)
{
if((mousepoint.x>left)&&(mousepoint.x<right)&&(mousepoint.y>bottom)&&(mousepoint.y<top))
return true;
return false;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -