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

📄 toolpoint.cpp

📁 在PDA中的画图程序
💻 CPP
字号:
// ToolPoint.cpp: implementation of the CToolPoint class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "DrawInPDA.h"
#include "ToolPoint.h"


#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
extern CDrawInPDAView *p_View;
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CToolPoint::CToolPoint():CTool(ttDrawPoint)
{

}

CToolPoint::~CToolPoint()
{

}

void CToolPoint::OnLButtonDown(CDrawInPDAView *pView, UINT nFlags, const CPoint &point)
{
	m_Point = new CShapePoint();
//	p_View->VPtoDP(int(point.x),int(point.y),&m_Point.)



	CTool::OnLButtonDown(pView, nFlags, point);


}

void CToolPoint::OnLButtonDblClk(CDrawInPDAView *pView, UINT nFlags, const CPoint &point)
{
	

}

void CToolPoint::OnLButtonUp(CDrawInPDAView *pView, UINT nFlags, const CPoint &point)
{
	ReleaseCapture();
	CTool::OnLButtonUp(pView, nFlags, point);

}

void CToolPoint::OnMouseMove(CDrawInPDAView *pView, UINT nFlags, const CPoint &point)
{
	//::SetCursor(AfxGetApp()->LoadStandardCursor(IDC_CROSS));
	CTool::OnMouseMove(pView, nFlags, point);
}

⌨️ 快捷键说明

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