📄 drawswitchbox.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 + -