【VC开源代码栏目提醒】:网学会员为需要VC开源代码的朋友们搜集整理了GraphicDoc.cpp相关资料,希望对各位网友有所帮助!
// GraphicDoc.cpp : implementation of the CGraphicDoc class
//
#include "stdafx.h"
#include "Graphic.h"
#include "GraphicDoc.h"
#include "GraphicView.h"
#include "Graph.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CGraphicDoc
IMPLEMENT_DYNCREATE(CGraphicDoc, CDocument)
BEGIN_MESSAGE_MAP(CGraphicDoc, CDocument)
//{{AFX_MSG_MAP(CGraphicDoc)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CGraphicDoc construction/destruction
CGraphicDoc::CGraphicDoc()
{
// TODO: add one-time construction code here
}
CGraphicDoc::~CGraphicDoc()
{
}
BOOL CGraphicDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CGraphicDoc serialization
void CGraphicDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
}
else
{
}
m_obArray.Serialize(ar);
}
/////////////////////////////////////////////////////////////////////////////
// CGraphicDoc diagnostics
#ifdef _DEBUG
void CGraphicDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CGraphicDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CGraphicDoc commands
void CGraphicDoc::DeleteContents()
{
// TODO: Add your specialized code here and/or call the base class
int nCount;
nCount=m_obArray.GetSize();
while(nCount--)
{
delete m_obArray.GetAt(nCount);
m_obArray.RemoveAt(nCount);
}
CDocument::DeleteContents();
}
上一篇:
Graphic2.cpp
下一篇:
哈弗F7 VS名爵HS,谁更懂得年轻人的心?