CopyCircle.cpp
Upload User: ggmm7909
Upload Date: 2008-11-12
Package Size: 80k
Code Size: 1k
Category:

Graph Drawing

Development Platform:

C/C++

  1. // CopyCircle.cpp: implementation of the CCopyCircle class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #include "stdafx.h"
  5. #include "CopyCircle.h"
  6. #include "Circle.h"
  7. #include "WinApp.h"
  8. extern CWinApp g_theApp;
  9. //////////////////////////////////////////////////////////////////////
  10. // Construction/Destruction
  11. //////////////////////////////////////////////////////////////////////
  12. CCopyCircle::CCopyCircle()
  13. {
  14. }
  15. CCopyCircle::~CCopyCircle()
  16. {
  17. }
  18. CCopyCircle::CCopyCircle(CShape *Shape)
  19. {
  20. pShape = Shape;
  21. }
  22. CShape * CCopyCircle::Copy()
  23. {
  24. CArray<CShape*> *pArrayShape = &(g_theApp.m_DataBase.m_ArrayShape);
  25. CCircle *pCircle = new CCircle;
  26. memcpy(pCircle,pShape,sizeof(CCircle));
  27. pShape->isPick = FALSE;
  28. pCircle->isPick  = TRUE;
  29. return pCircle;
  30. }