home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 19.ddi / MFC / SAMPLES / SCRIBBLE / STEP0 / SCRIBDOC.CP_ / SCRIBDOC.CP
Encoding:
Text File  |  1993-02-08  |  2.1 KB  |  94 lines

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