You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.3 KiB
C++
48 lines
1.3 KiB
C++
#ifndef MWSETCITONSCALEBOX_H
|
|
#define MWSETCITONSCALEBOX_H
|
|
#pragma once
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
//文件 ScaleBox.h
|
|
//主要功能:
|
|
// 比例尺
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
#include "ScaleLegend.h"
|
|
class AFX_EXT_CLASS CMWSectionScaleBox : public CWellBaseObj
|
|
{
|
|
public:
|
|
CMWSectionScaleBox(void);
|
|
~CMWSectionScaleBox(void);
|
|
public:
|
|
CScaleLegend *m_pProportion;
|
|
public:
|
|
virtual void Serialize(CArchive& ar, const short &ver);
|
|
virtual void Draw(CXyDC* pDC);
|
|
protected:
|
|
|
|
DWORD m_nScaleBoxFlags;
|
|
enum ScaleBoxFlags
|
|
{
|
|
FlagScaleBox = 0x00000, //
|
|
ScaleBoxFlagUnitMeter = 0x10000, // 单位米
|
|
ScaleBoxFlagUnitKiloMeter = 0x10001, // 单位千米
|
|
};
|
|
public:
|
|
int m_GridLenght;
|
|
public:
|
|
virtual void MoveTo(CRect8& position);
|
|
virtual void MoveHandleTo(int nHandle, CPoint2D point);
|
|
virtual CPoint2D GetHandle(int nHandle);
|
|
virtual void GetRange(CRect8& range);
|
|
virtual int HitTest(CPoint2D point, double dHandleSize, BOOL bSelected);
|
|
//开关变量值
|
|
virtual void SetScaleBoxFlags(DWORD flags);
|
|
virtual void SetUnitMeter(BOOL bFlag);
|
|
virtual void SetUnitKiloMeter(BOOL bFlag);
|
|
|
|
virtual DWORD GetScaleBoxFlags();
|
|
virtual BOOL IsUnitMeter();
|
|
virtual BOOL IsUnitKiloMeter();
|
|
COLORREF m_ScalerBoxcolor;
|
|
};
|
|
|
|
#endif |