home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / internet / mfcie / mfciedoc.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  2.0 KB  |  93 lines

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