// vectorDoc.cpp : implementation of the CVectorDoc class // #include "stdafx.h" #include "leadvector.h" #include "vecDoc.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CVectorDoc IMPLEMENT_DYNCREATE(CVectorDoc, CDocument) BEGIN_MESSAGE_MAP(CVectorDoc, CDocument) //{{AFX_MSG_MAP(CVectorDoc) // 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() ///////////////////////////////////////////////////////////////////////////// // CVectorDoc construction/destruction CVectorDoc::CVectorDoc() { // TODO: add one-time construction code here } CVectorDoc::~CVectorDoc() { } BOOL CVectorDoc::OnNewDocument() { if (!CDocument::OnNewDocument()) return FALSE; // TODO: add reinitialization code here // (SDI documents will reuse this document) return TRUE; } ///////////////////////////////////////////////////////////////////////////// // CVectorDoc serialization void CVectorDoc::Serialize(CArchive& ar) { if (ar.IsStoring()) { // TODO: add storing code here } else { // TODO: add loading code here } } ///////////////////////////////////////////////////////////////////////////// // CVectorDoc diagnostics #ifdef _DEBUG void CVectorDoc::AssertValid() const { CDocument::AssertValid(); } void CVectorDoc::Dump(CDumpContext& dc) const { CDocument::Dump(dc); } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CVectorDoc commands