📄 bezier.h
字号:
// Bezier.h: interface for the CBezier class.////////////////////////////////////////////////////////////////////////#if !defined(AFX_BEZIER_H__A47AB941_FE0A_11D2_B2E0_FD4073D75C54__INCLUDED_)#define AFX_BEZIER_H__A47AB941_FE0A_11D2_B2E0_FD4073D75C54__INCLUDED_#if _MSC_VER >= 1000#pragma once#endif // _MSC_VER >= 1000#include "Shape.h"class CBezier : public CShape { //attributespublic: CPoint m_tCtlPt[4];
double m_RAry[4];
struct{
double x,y;
} m_ptAry[4];
int Curptnum,Curpt; CPoint basept;public: void Draw(CDC* pDC); void SetCtlPt(CPoint point,int index) { m_tCtlPt[index] = point;
dragmode=10; } //Constructors and destructorspublic: CShape * copys(TCHAR &ch);
void CalForRot(CPoint &pt);
void invalid(CGeditorView *pView);
void rotate(int rsel,CDC *pDC,CPoint pt, CGeditorView *pView);
void Mirror(int syd, CDC *pDC,CPoint &basept,CGeditorView* pView);
void dragobj(int leash,CDC *pDC,CPoint pt,CGeditorView* pView);
int InTest(CPoint pt);
void InitProp();
void Serialize(CArchive& ar); CBezier(); virtual ~CBezier();#ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const;#endifprotected: DECLARE_SERIAL(CBezier)};#endif // !defined(AFX_BEZIER_H__A47AB941_FE0A_11D2_B2E0_FD4073D75C54__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -