drawelement.cpp

来自「数据库开发」· C++ 代码 · 共 62 行

CPP
62
字号
// DrawElement.cpp: implementation of the CDrawElement class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "MyDraw.h"
#include "DrawElement.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
IMPLEMENT_SERIAL(CDrawElement,CObject,1)

CDrawElement::CDrawElement()
{
	bIsSelected=0;
	startX=0;
	startY=0;
	endX=100;
	endY=100;

	MyPen.lopnWidth.x=3;
	MyPen.lopnColor=RGB(0,0,0);
	MyPen.lopnStyle=PS_SOLID;

	MyBrush.lbColor=RGB(255,255,255);
	MyBrush.lbHatch=HS_CROSS;
	MyBrush.lbStyle=BS_NULL;
}

CDrawElement::~CDrawElement()
{

}

void CDrawElement::Serialize(CArchive & ar)
{
	CObject::Serialize(ar);
    if(ar.IsLoading())
    {
    }
	else
	{
    }
}

void CDrawElement::Draw(CDC *pDC)
{

}

void CDrawElement::ShowProperties()
{

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?