- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
UND_Create.cpp
资源名称:44757463.rar [点击查看]
上传用户:lj3531212
上传日期:2007-06-18
资源大小:346k
文件大小:1k
源码类别:
绘图程序
开发平台:
Visual C++
- // UND_Create.cpp: implementation of the CUND_Create class.
- //
- //////////////////////////////////////////////////////////////////////
- #include "stdafx.h"
- #include "graphsoft.h"
- #include "UND_Create.h"
- #include "Core.h"
- #ifdef _DEBUG
- #undef THIS_FILE
- static char THIS_FILE[]=__FILE__;
- #define new DEBUG_NEW
- #endif
- //////////////////////////////////////////////////////////////////////
- // Construction/Destruction
- //////////////////////////////////////////////////////////////////////
- CUND_Create::CUND_Create()
- {
- SetTitle("???");
- m_pShape=NULL;
- }
- CUND_Create::CUND_Create(void* pVoid)
- {
- m_pShape=(CShape*)pVoid;
- CString str;
- str.LoadString(IDS_CREATE);
- if(m_pShape!=NULL)
- SetTitle(str+" "+m_pShape->GetNameString());
- }
- CUND_Create::~CUND_Create()
- {
- if(m_pShape!=NULL)
- delete m_pShape;
- m_pShape=NULL;
- }
- void CUND_Create::Destroy()
- {
- }
- BOOL CUND_Create::OnEditUndo(CCore *pCore)
- {
- pCore->DrawGraph(m_pShape,FALSE);
- pCore->ReMoveShape(m_pShape->GetID());
- return TRUE;
- }
- BOOL CUND_Create::OnEditRedo(CCore *pCore)
- {
- pCore->DrawGraph(m_pShape,TRUE);
- pCore->m_pDoc->m_shapeList.AddTail(m_pShape);
- return TRUE;
- }
- BOOL CUND_Create::OutputLog(CCore *pCore)
- {
- //未做
- return false;
- }