⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 drawswitchbox.cpp

📁 这是一个开关盒布线程序
💻 CPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -