home *** CD-ROM | disk | FTP | other *** search
/ C/C++ User's Journal & Wi…eveloper's Journal Tools / C-C__Users_Journal_and_Windows_Developers_Journal_Tools_1997.iso / stingray / griddoc2.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-27  |  2.0 KB  |  94 lines

  1. // griddoc2.cpp : implementation file
  2. //
  3.  
  4. // This is a part of the Objective Grid C++ Library.
  5. // Copyright (C) 1995,1996 ClassWorks, Stefan Hoenig.
  6. // All rights reserved.
  7. //
  8. // This source code is only intended as a supplement to
  9. // the Objective Grid Classes Reference and related
  10. // electronic documentation provided with the library.
  11. // See these sources for detailed information regarding
  12. // the Objective Grid product.
  13. //
  14.  
  15. #include "stdafx.h"
  16. #include "gridapp.h"
  17. #include "griddoc2.h"
  18.  
  19. #ifndef _GXCORE_H_
  20. #include "gxcore.h"
  21. #endif
  22.  
  23. #ifdef _DEBUG
  24. #undef THIS_FILE
  25. static char BASED_CODE THIS_FILE[] = __FILE__;
  26. #endif
  27.  
  28. /////////////////////////////////////////////////////////////////////////////
  29. // CSampleDocument2
  30.  
  31. IMPLEMENT_DYNCREATE(CSampleDocument2, CDocument)
  32.  
  33. CSampleDocument2::CSampleDocument2()
  34. {
  35.     m_pParam = NULL;
  36. }
  37.  
  38. BOOL CSampleDocument2::OnNewDocument()
  39. {
  40.     delete m_pParam;
  41.     m_pParam = NULL;
  42.  
  43.     if (!CDocument::OnNewDocument())
  44.         return FALSE;
  45.     return TRUE;
  46. }
  47.  
  48. CSampleDocument2::~CSampleDocument2()
  49. {
  50.     delete m_pParam;
  51. }
  52.  
  53.  
  54. BEGIN_MESSAGE_MAP(CSampleDocument2, CDocument)
  55.     //{{AFX_MSG_MAP(CSampleDocument2)
  56.         // NOTE - the ClassWizard will add and remove mapping macros here.
  57.     //}}AFX_MSG_MAP
  58. END_MESSAGE_MAP()
  59.  
  60.  
  61.  
  62. /////////////////////////////////////////////////////////////////////////////
  63. // CSampleDocument2 diagnostics
  64.  
  65. #ifdef _DEBUG
  66. void CSampleDocument2::AssertValid() const
  67. {
  68.     CDocument::AssertValid();
  69. }
  70.  
  71. void CSampleDocument2::Dump(CDumpContext& dc) const
  72. {
  73.     CDocument::Dump(dc);
  74. }
  75. #endif //_DEBUG
  76.  
  77. /////////////////////////////////////////////////////////////////////////////
  78. // CSampleDocument2 serialization
  79.  
  80. void CSampleDocument2::Serialize(CArchive& ar)
  81. {
  82.     if (ar.IsStoring())
  83.     {
  84.         // TODO: add storing code here
  85.     }
  86.     else
  87.     {
  88.         // TODO: add loading code here
  89.     }
  90. }
  91.  
  92. /////////////////////////////////////////////////////////////////////////////
  93. // CSampleDocument2 commands
  94.