From f5a0e19fb942ad6796fb77d4a14e771c1e4eb385 Mon Sep 17 00:00:00 2001 From: mjjo Date: Sat, 20 Jul 2013 23:20:34 +0000 Subject: [PATCH] --- StockServer/DocumentHelper.cpp | 84 ++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 StockServer/DocumentHelper.cpp diff --git a/StockServer/DocumentHelper.cpp b/StockServer/DocumentHelper.cpp new file mode 100644 index 0000000..6ed5a41 --- /dev/null +++ b/StockServer/DocumentHelper.cpp @@ -0,0 +1,84 @@ +// DocumentHelper.cpp : implementation of the CDocumentHelper class +// + +#include "stdafx.h" +#include "StockServer.h" + +#include "DocumentHelper.h" + +#ifdef _DEBUG +#define new DEBUG_NEW +#undef THIS_FILE +static char THIS_FILE[] = __FILE__; +#endif + +///////////////////////////////////////////////////////////////////////////// +// CDocumentHelper + +IMPLEMENT_DYNCREATE(CDocumentHelper, CDocument) + +BEGIN_MESSAGE_MAP(CDocumentHelper, CDocument) + //{{AFX_MSG_MAP(CDocumentHelper) + // 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() + +///////////////////////////////////////////////////////////////////////////// +// CDocumentHelper construction/destruction + +CDocumentHelper::CDocumentHelper() +{ + // TODO: add one-time construction code here + +} + +CDocumentHelper::~CDocumentHelper() +{ +} + +BOOL CDocumentHelper::OnNewDocument() +{ + if (!CDocument::OnNewDocument()) + return FALSE; + + // TODO: add reinitialization code here + // (SDI documents will reuse this document) + + return TRUE; +} + + + +///////////////////////////////////////////////////////////////////////////// +// CDocumentHelper serialization + +void CDocumentHelper::Serialize(CArchive& ar) +{ + if (ar.IsStoring()) + { + // TODO: add storing code here + } + else + { + // TODO: add loading code here + } +} + +///////////////////////////////////////////////////////////////////////////// +// CDocumentHelper diagnostics + +#ifdef _DEBUG +void CDocumentHelper::AssertValid() const +{ + CDocument::AssertValid(); +} + +void CDocumentHelper::Dump(CDumpContext& dc) const +{ + CDocument::Dump(dc); +} +#endif //_DEBUG + +///////////////////////////////////////////////////////////////////////////// +// CDocumentHelper commands