home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / samples / c07 / list / listdoc.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.5 KB  |  78 lines

  1. // ListDoc.cpp : implementation of the CListDoc class
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "List.h"
  6.  
  7. #include "ListDoc.h"
  8.  
  9. #ifdef _DEBUG
  10. #define new DEBUG_NEW
  11. #undef THIS_FILE
  12. static char THIS_FILE[] = __FILE__;
  13. #endif
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CListDoc
  17.  
  18. IMPLEMENT_DYNCREATE(CListDoc, CDocument)
  19.  
  20. BEGIN_MESSAGE_MAP(CListDoc, CDocument)
  21.     //{{AFX_MSG_MAP(CListDoc)
  22.         // NOTE - the ClassWizard will add and remove mapping macros here.
  23.         //    DO NOT EDIT what you see in these blocks of generated code!
  24.     //}}AFX_MSG_MAP
  25. END_MESSAGE_MAP()
  26.  
  27. /////////////////////////////////////////////////////////////////////////////
  28. // CListDoc construction/destruction
  29.  
  30. CListDoc::CListDoc()
  31. {
  32. }
  33.  
  34. CListDoc::~CListDoc()
  35. {
  36. }
  37.  
  38. BOOL CListDoc::OnNewDocument()
  39. {
  40.     if (!CDocument::OnNewDocument())
  41.         return FALSE;
  42.  
  43.     return TRUE;
  44. }
  45.  
  46. /////////////////////////////////////////////////////////////////////////////
  47. // CListDoc serialization
  48.  
  49. void CListDoc::Serialize(CArchive& ar)
  50. {
  51.     if (ar.IsStoring())
  52.     {
  53.         // TODO: add storing code here
  54.     }
  55.     else
  56.     {
  57.         // TODO: add loading code here
  58.     }
  59. }
  60.  
  61. /////////////////////////////////////////////////////////////////////////////
  62. // CListDoc diagnostics
  63.  
  64. #ifdef _DEBUG
  65. void CListDoc::AssertValid() const
  66. {
  67.     CDocument::AssertValid();
  68. }
  69.  
  70. void CListDoc::Dump(CDumpContext& dc) const
  71. {
  72.     CDocument::Dump(dc);
  73. }
  74. #endif //_DEBUG
  75.  
  76. /////////////////////////////////////////////////////////////////////////////
  77. // CListDoc commands
  78.