drawswitchbox.cpp

来自「这是一个开关盒布线程序」· C++ 代码 · 共 40 行

CPP
40
字号
// DrawSwitchBox.cpp: implementation of the CDrawSwitchBox class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "SwitchBox.h"
#include "DrawSwitchBox.h"

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

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CDrawSwitchBox::CDrawSwitchBox()
{
	point[0].x = 200;
	point[0].y = 100;
	point[1].x = 500;
	point[1].y = 100;
	point[2].x = 500;
	point[2].y = 400;
	point[3].x = 200;
	point[3].y = 400;
}

CDrawSwitchBox::~CDrawSwitchBox()
{

}
void CDrawSwitchBox::DrawLine(CDC* pDC, CPoint start, CPoint end)
{
	pDC->MoveTo( start );
	pDC->LineTo( end );
}

⌨️ 快捷键说明

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