📄 ly16line.cpp
字号:
// LY16Line.cpp: implementation of the CLY16Line class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "LY16paint.h"
#include "LY16Line.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CLY16Line::CLY16Line()
{
}
CLY16Line::~CLY16Line()
{
}
void CLY16Line::Draw(CDC *pDC)
{
CPen pen(PS_SOLID,m_nPenWidth,m_clrPaint);
CPen* pOldPen=pDC->SelectObject(&pen);
pDC->MoveTo(m_ptStart);
pDC->LineTo(m_ptEnd);
pDC->SelectObject(pOldPen);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -