📄 mypoint1.cpp
字号:
// Mypoint1.cpp: implementation of the CMypoint class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "VCexpshi10.h"
#include "Mypoint1.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
IMPLEMENT_SERIAL(CMypoint,CObject,0);
CMypoint::CMypoint()
{
x=0;
y=0;
r=0;
}
CMypoint::~CMypoint()
{
}
CMypoint::CMypoint(int a, int b, int r1)
{
x=a;
y=b;
r=r1;
}
void CMypoint::Serializa(CArchive &ar)
{
if(ar.IsStoring())
ar<<x<<y<<r;
else
ar>>r>>y>>x;
}
void CMypoint::Drow(CDC *pdc)
{
pdc->Ellipse(x-r,y-r,x+r,y+r);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -