line.cpp
来自「实现了区域填充已经其他画线功能」· C++ 代码 · 共 37 行
CPP
37 行
// Line.cpp: implementation of the CLine class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "graphExp.h"
#include "Line.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CLine::CLine()
{
}
CLine::~CLine()
{
}
CLine::CLine(CPoint pntSart,CPoint pntEnd)
{
m_pntStart= pntSart;
m_pntEnd=pntEnd;
}
void CLine::DrawLine(CDC *PDC)
{
PDC->MoveTo(m_pntStart);
PDC->LineTo(m_pntEnd);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?