?? element.cpp
字號:
#include "stdafx.h"
#include "Element.h"
int Element::isselected(CPoint* e)
{
if(e->x>=e1.x&&e->x<=e2.x&&e->y>=e1.y&&e->y<=e2.y)
{
this->selecting=1;
return 1;
}
else return 0;
}
int Element::isDeleted()
{
return 0;
}
void Element::paint(CDC& g)
{
}
CPoint Element::getPoint1()
{
return e1;
}
CPoint Element::getPoint2()
{
return e2;
}
void Element::setPoint1(int x,int y)
{
this->e1.x=x;
this->e1.y=y;
}
void Element::setPoint2(int x,int y)
{
this->e2.x=x;
this->e2.y=y;
}
void Element::Delete()
{
}
void Element::removeAttribute(Attribute *a)
{
}
void Element::addAttribute(Attribute *a)
{
}
void Element::serial(CArchive& ar)
{
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -