home *** CD-ROM | disk | FTP | other *** search
- // griddoc2.cpp : implementation file
- //
-
- // This is a part of the Objective Grid C++ Library.
- // Copyright (C) 1995,1996 ClassWorks, Stefan Hoenig.
- // All rights reserved.
- //
- // This source code is only intended as a supplement to
- // the Objective Grid Classes Reference and related
- // electronic documentation provided with the library.
- // See these sources for detailed information regarding
- // the Objective Grid product.
- //
-
- #include "stdafx.h"
- #include "gridapp.h"
- #include "griddoc2.h"
-
- #ifndef _GXCORE_H_
- #include "gxcore.h"
- #endif
-
- #ifdef _DEBUG
- #undef THIS_FILE
- static char BASED_CODE THIS_FILE[] = __FILE__;
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
- // CSampleDocument2
-
- IMPLEMENT_DYNCREATE(CSampleDocument2, CDocument)
-
- CSampleDocument2::CSampleDocument2()
- {
- m_pParam = NULL;
- }
-
- BOOL CSampleDocument2::OnNewDocument()
- {
- delete m_pParam;
- m_pParam = NULL;
-
- if (!CDocument::OnNewDocument())
- return FALSE;
- return TRUE;
- }
-
- CSampleDocument2::~CSampleDocument2()
- {
- delete m_pParam;
- }
-
-
- BEGIN_MESSAGE_MAP(CSampleDocument2, CDocument)
- //{{AFX_MSG_MAP(CSampleDocument2)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
-
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CSampleDocument2 diagnostics
-
- #ifdef _DEBUG
- void CSampleDocument2::AssertValid() const
- {
- CDocument::AssertValid();
- }
-
- void CSampleDocument2::Dump(CDumpContext& dc) const
- {
- CDocument::Dump(dc);
- }
- #endif //_DEBUG
-
- /////////////////////////////////////////////////////////////////////////////
- // CSampleDocument2 serialization
-
- void CSampleDocument2::Serialize(CArchive& ar)
- {
- if (ar.IsStoring())
- {
- // TODO: add storing code here
- }
- else
- {
- // TODO: add loading code here
- }
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CSampleDocument2 commands
-