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

📄 robot1.cpp

📁 能进行画图 鼠标移动画圆 矩形 同时改变光标
💻 CPP
字号:
// Robot1.cpp: implementation of the CRobot class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "mine.h"
#include "Robot1.h"
#include "const.h"
#include "math.h"

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

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

CRobot::CRobot()
{

}

CRobot::~CRobot()
{

}
CRobot::Draw(CDC *pDC,CPoint point)
{

	pDC->SelectStockObject(NULL_BRUSH);
	pDC->SelectObject(&RED_PEN);
	pDC->Ellipse(point.x-1,point.y-1,point.x+1,point.y+1);

}

⌨️ 快捷键说明

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