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

📄 functionpoint.cpp

📁 一个简单的画图程序 可以画点线面等
💻 CPP
字号:
// FunctionPoint.cpp: implementation of the CFunctionPoint class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "SmallCAD203.h"
#include "FunctionPoint.h"
#include "GraphPoint.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
extern CSmallCAD203App theApp;
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CFunctionPoint::CFunctionPoint( )
{ID=100;
 

}

CFunctionPoint::~CFunctionPoint()
{

}
void CFunctionPoint::OnLButtonDown(UINT nFlags, CPoint point)
{
	CMainFrame *pFrame=(CMainFrame *)theApp.GetMainWnd();
	CSmallCAD203Doc *pDoc=(CSmallCAD203Doc *)pFrame->GetActiveDocument();
	CSmallCAD203View *pView=(CSmallCAD203View *)pFrame->GetActiveView();
	CGraphPoint *p=new CGraphPoint;
	p->SetLocation(point);
	p->SetColor(pDoc->GetCurrentColor());
	p->SetScale(pDoc->GetCurrentScale());
	CDC *pDC=pView->GetDC();
	p->Draw(pDC);
	pView->ReleaseDC(pDC);
	//pDoc->AddGraph(p);
	pDoc->my_list.InSert(p);
}
void CFunctionPoint::OnLButtonUp(UINT nFlags, CPoint point)
{}
void CFunctionPoint::OnMouseMove(UINT nFlags, CPoint point)
{}

⌨️ 快捷键说明

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