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

📄 lxline.cpp

📁 实现网络图象传输
💻 CPP
字号:
// LxLine.cpp: implementation of the CLxLine class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "lxdraw.h"
#include "LxLine.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CLxLine::CLxLine()
{

}

CLxLine::~CLxLine()
{

}

CLxLine::CLxLine(CPoint ptFrom, CPoint ptTo)
{
	m_ptFrom=ptFrom;//线条起点
	m_ptTo=ptTo;//线条终点

}

void CLxLine::Draw(CDC *PDC)
{
	PDC->MoveTo(m_ptFrom);//移动到线条起点
	PDC->LineTo(m_ptTo);//从起点画线到终点

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -