line.cpp

来自「提供一个图形工具界面」· C++ 代码 · 共 73 行

CPP
73
字号
// Line.cpp : implementation file
//

#include "stdafx.h"
#include "mdrowpen.h"
#include "Line.h"

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

/////////////////////////////////////////////////////////////////////////////
// CLine

//IMPLEMENT_DYNCREATE(CLine, CView)

//DEL CLine::CLine()
//DEL {
//DEL }

/*CLine(CPoint StartPoint,CPoint Endpoint,CPen myPen)
{

}
*/
//DEL CLine::~CLine()
//DEL {
//DEL }

/*void Draw(CDC *pDC)
{
	pDC->SelectObject(&myPen);
	
	
	pDC->MoveTo(StartPoint);
	pDC->LineTo(EndPoint);
}
*/
//BEGIN_MESSAGE_MAP(CLine, CView)
	//{{AFX_MSG_MAP(CLine)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
//END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CLine drawing

//DEL void CLine::OnDraw(CDC* pDC)
//DEL {
//DEL 	CDocument* pDoc = GetDocument();
//DEL 	// TODO: add draw code here
//DEL }

/////////////////////////////////////////////////////////////////////////////
// CLine diagnostics

#ifdef _DEBUG
//DEL void CLine::AssertValid() const
//DEL {
//DEL 	CView::AssertValid();
//DEL }

//DEL void CLine::Dump(CDumpContext& dc) const
//DEL {
//DEL 	CView::Dump(dc);
//DEL }
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CLine message handlers

⌨️ 快捷键说明

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