cdc2.cpp

来自「一个五子棋的例子」· C++ 代码 · 共 34 行

CPP
34
字号
// CDC2.cpp: implementation of the CDC2 class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "7.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
#include "CDC2.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CDC2::CDC2()
{this->msize.cx =0 ;
this->msize.cy =0 ;
}

CDC2::~CDC2()
{

}
CSize CDC2::GetSize()
{
return (this->msize); 	
}
void CDC2::SetSize(CSize size)
{	this->msize.cx =size.cx ;
	this->msize.cy =size.cy;
}

⌨️ 快捷键说明

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