?? lxline.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);//從起點畫線到終點
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -