This commit is contained in:
84
StockServer/DocumentHelper.cpp
Normal file
84
StockServer/DocumentHelper.cpp
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user