📄 pointshape.h
字号:
//PointShape.h
#ifndef POINTSHAPE_H
#define POINTSHAPE_H
//为避免与MFC类CPoint类冲突,在此命名为CPointShape,
//而不是CPoint
class CPointShape:public CDraw
{
protected:
DECLARE_SERIAL(CPointShape)
float m_fXcoord; //点X、Y坐标
float m_fYcoord;
float m_fRadius; //半径
public:
CPointShape(){}
CPointShape(short colorPen,short colorBrush,short lineWide,
short lineType,short layer,int idOnly,BOOL bDelete,
float Xcoord,float Ycoord);
~CPointShape();
virtual void Serialize(CArchive& ar);
virtual void Draw(CDC *pDC,int drawMode1,int drawMode2,short colorPen);
virtual void GetBoundRect(float& x1, float& y1, float& x2, float& y2);
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -