robot2.cpp

来自「能进行画图 鼠标移动画圆 矩形 同时改变光标」· C++ 代码 · 共 38 行

CPP
38
字号
// Robot2.cpp: implementation of the CRobot class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "mine.h"
#include "Robot2.h"
#include "const.h"


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

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

CRobot::CRobot()
{
	

}
void CRobot::Draw(CDC *pDC,CPoint point)
{
	pDC->SelectObject(&RED_PEN);
	pDC->SelectStockObject(NULL_BRUSH);
	pDC->Ellipse(point.x-1,point.y-1,point.x+1,point.y+1);
}

CRobot::~CRobot()
{


}

⌨️ 快捷键说明

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