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

📄 zcr14shape.cpp

📁 一个画笔的程序,可以进行直线,圆和方形等图形进行画图,并可以撤消上一步的动作
💻 CPP
字号:
// ZCR14Shape.cpp: implementation of the CZCR14Shape class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "ZCR14Paint.h"
#include "ZCR14Shape.h"

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

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


CZCR14Shape::CZCR14Shape()
{

}

CZCR14Shape::~CZCR14Shape()
{

}

void CZCR14Shape::Draw(CDC *pDC)
{

}


IMPLEMENT_SERIAL(CZCR14Shape,CObject,1)
void CZCR14Shape::Serialize(CArchive &ar)
{
    CObject::Serialize(ar);
    if(ar.IsStoring())
	{
	  ar<<m_clrPaint<< m_clrCanvase;
	}
	else
	{
       ar>>m_clrPaint>>m_clrCanvase;
	}
}

CZCR14Shape* CZCR14Shape::NewShape()
{
     return new CZCR14Shape; 
}

CString CZCR14Shape::GetClassName()
{
     return "CZCR14Shape"; 
}

⌨️ 快捷键说明

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