line.h
来自「一个复杂的画图系统」· C头文件 代码 · 共 55 行
H
55 行
// Line.h: interface for the CLine class.////////////////////////////////////////////////////////////////////////#if !defined(AFX_LINE_H__F0FB63F5_F735_11D2_B2E0_A1874FE1ADE4__INCLUDED_)#define AFX_LINE_H__F0FB63F5_F735_11D2_B2E0_A1874FE1ADE4__INCLUDED_#if _MSC_VER >= 1000#pragma once#endif // _MSC_VER >= 1000#include "Shape.h"class CLine : public CShape {protected: CPoint m_tStartPt,m_tEndPt,basicpoint;public: CLine(); virtual ~CLine();public:
void InitProp();
void UpdateProp(int sel);
void invalid(CGeditorView *pView);
void Mirror(int syd,CDC *pDC,CPoint &basept,CGeditorView* pView);
void CalForRot(CPoint &pt);
void rotate(int rsel,CDC *pDC,CPoint pt, CGeditorView *pView);
int InTest(CPoint pt);
void dragobj(int leash,CDC *pDC,CPoint point,CGeditorView* pView);
void SetStartPt(POINT& pt);
CPoint MidPt;
float rad;
CShape * copys(TCHAR &ch); CPoint& GetStartPt(){ return m_tStartPt; }; void SetEndPt(POINT& pt); CPoint& GetEndPt(){ return m_tEndPt; }; void Draw(CDC* pDC); void Serialize(CArchive& ar);#ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const;#endifprotected: DECLARE_SERIAL(CLine)};#endif // !defined(AFX_LINE_H__F0FB63F5_F735_11D2_B2E0_A1874FE1ADE4__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?