?? line.cpp
字號:
// Line.cpp: implementation of the CLine class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "MyDrawLine.h"
#include "Line.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
IMPLEMENT_SERIAL(CLine, CObject,1)
CLine::CLine()
{m_Start=m_End=0;
}
CLine::~CLine()
{
}
CLine::CLine(CPoint Start,CPoint End)
{m_Start=Start;
m_End=End;
}
void CLine::DrawLine(CDC* pDC)
{pDC->MoveTo(m_Start);
pDC->LineTo(m_End);
}
void CLine::Serialize(CArchive &ar)
{if(ar.IsStoring())
{ ar<<m_Start<<m_End;}
else
{ ar>>m_Start>>m_End;}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -