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

1 month ago
#ifndef MWSETCITONSCALEBOX_H
#define MWSETCITONSCALEBOX_H
#pragma once
//////////////////////////////////////////////////////////////////////////////
//<2F>ļ<EFBFBD> ScaleBox.h
//<2F><>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD>:
// <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/////////////////////////////////////////////////////////////////////////////
#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, // <20><>λ<EFBFBD><CEBB>
ScaleBoxFlagUnitKiloMeter = 0x10001, // <20><>λǧ<CEBB><C7A7>
};
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);
//<2F><><EFBFBD>ر<EFBFBD><D8B1><EFBFBD>ֵ
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