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.

23 lines
812 B
C

#pragma once
#include "module.h"
class CRuler :public CModule
{
public:
CRuler(void);
~CRuler(void);
virtual CMFCPropertyGridProperty *CreatGridProperty();
virtual void OnPropertyChanged();
virtual MODULE GetModuleType(){return _RULER_PROP;};
virtual void Draw(CDC* pDC);//<2F><>pDC <20><><EFBFBD><EFBFBD>һЩ<D2BB><D0A9><EFBFBD><EFBFBD>
void DrawMousePos(CDC* pDC,CPoint point);
private:
void DrawRuler(CDC* pDC);
void DrawRulerNum(CDC* pDC,int Num,int CurX,int CurY,double TextWidth,BOOL bIsX);
CFont* SetCurFont(CDC *pDC,double TextHeight,double TextWidth,double RotateAngle,bool bIsItalic,CString FontTypeStr);
private:
bool m_bDrawRuler;//<2F>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD>Ʊ<EFBFBD><C6B1><EFBFBD>
CPoint m_MousePointTmp;//<2F><>¼<EFBFBD><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱλ<CAB1><CEBB>,<2C><><EFBFBD>ڱ<EFBFBD><DAB1><EFBFBD><EFBFBD><EFBFBD>
};
extern CRuler *gRuler;