CopyLine.cpp
资源名称:CAD.zip [点击查看]
上传用户:hehe2haha
上传日期:2013-08-16
资源大小:161k
文件大小:1k
源码类别:
CAD
开发平台:
Visual C++
- // CopyLine.cpp: implementation of the CCopyLine class.
- //
- //////////////////////////////////////////////////////////////////////
- #include "stdafx.h"
- #include "CopyLine.h"
- #include "WinApp.h"
- #include "Line.h"
- extern CWinApp g_theApp;
- //////////////////////////////////////////////////////////////////////
- // Construction/Destruction
- //////////////////////////////////////////////////////////////////////
- CCopyLine::CCopyLine()
- {
- }
- CCopyLine::~CCopyLine()
- {
- }
- CCopyLine::CCopyLine(CShape *Shape)
- {
- pShape = Shape;
- }
- CShape * CCopyLine::Copy()
- {
- CArray<CShape*> *pArrayShape = &(g_theApp.m_DataBase.m_ArrayShape);
- CLine *pLine = new CLine;
- memcpy(pLine,pShape,sizeof(CLine));
- pShape->isPick = FALSE;
- pLine->isPick = TRUE;
- return pLine;
- }