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