📄 shape.h
字号:
// GraphCell.h: interface for the CGraphCell class.////////////////////////////////////////////////////////////////////////#if !defined(AFX_SHAPE_H__F72DEE7A_FC88_11D2_B2E0_961FD60BAA53__INCLUDED_)#define AFX_SHAPE_H__F72DEE7A_FC88_11D2_B2E0_961FD60BAA53__INCLUDED_#if _MSC_VER >= 1000#pragma once#endif // _MSC_VER >= 1000
class Cprop;
class CGeditorView;class CShape : public CObject {protected: public:
unsigned int m_color,edgeclr; //The color of the object. void SetColor(unsigned int color) { m_color = color; } //Constructors and destructorspublic://four virtual function!!!!
virtual void InitProp();
virtual void UpdateProp(int sel);
virtual void invalid(CGeditorView * pView);
virtual void CalForRot(CPoint &pt);
virtual void rotate(int rsel,CDC *pDC,CPoint pt,CGeditorView* pView);
virtual void Mirror(int syd,CDC *pDC,CPoint &BasePt,CGeditorView* pView);
virtual void Draw(CDC* pDC);
virtual int InTest(CPoint pt);
virtual void dragobj(int leash,CDC *pDC,CPoint point,CGeditorView* pView);
virtual CShape * copys(TCHAR &ch){return this;}
int dragmode;
int width,linesty,fills;
LV_ITEM item;
char svalue[3];
CString name;
CPoint movept;//this two para for drag obj
Cprop *p;
CShape(); virtual ~CShape(); virtual void Serialize(CArchive &ar);#ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const;#endifprotected: DECLARE_SERIAL(CShape)};//typedef CTypedPtrList<CObList, CShape*> CShapeList;#endif // !defined(AFX_SHAPE_H__F72DEE7A_FC88_11D2_B2E0_961FD60BAA53__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -