element.h
来自「1.通过鼠标拖拽和弹出对话框完成实体、属性、联系的绘制以及各参数设定 2.对绘」· C头文件 代码 · 共 30 行
H
30 行
#ifndef ELEMENT_H
#define ELEMENT_H
#include "stdafx.h"
class Attribute;
class Element
{
public:
int selecting;
CString name;
int type;
CPoint e1;
CPoint e2;
Element* nextelement;
virtual void paint(CDC& g);
virtual int isDeleted();
virtual void Delete();
virtual void removeAttribute(Attribute *a);
virtual void addAttribute(Attribute *a);
virtual void serial(CArchive& ar);
int isselected(CPoint* e);
void setPoint1(int x,int y);
void setPoint2(int x,int y);
CPoint getPoint1();
CPoint getPoint2();
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?