pointtool.cpp

来自「此程序实现了类似protel电路画图程序。」· C++ 代码 · 共 42 行

CPP
42
字号
// PointTool.cpp: implementation of the CPointTool class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "Pointtest.h"
#include "PointTool.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

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

CPointTool::CPointTool(CWnd* cWnd,CElist* pList,CPointList* pOintList,CLineList* pLineList)
		:CBaseTool(cWnd,pList,pOintList,pLineList)
{
	m_sigle = NULL;
}

CPointTool::~CPointTool()
{

}
void CPointTool::OnLButtonDown(UINT nFlags, CPoint point)
{
	CanDraw = TRUE;

}
void CPointTool::OnLButtonUp(UINT nFlags, CPoint point)
{
	if(!CanDraw) return;
	CanDraw = FALSE;

}
void CPointTool::OnMouseMove(UINT nFlags, CPoint point)
{

}

⌨️ 快捷键说明

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