home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c11 / lab02 / baseline / ic_2doc.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.6 KB  |  82 lines

  1. // IC_2Doc.cpp : implementation of the CIC_2Doc class
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "IC_2.h"
  6.  
  7. #include "IC_2Doc.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. // CIC_2Doc
  17.  
  18. IMPLEMENT_DYNCREATE(CIC_2Doc, CDocument)
  19.  
  20. BEGIN_MESSAGE_MAP(CIC_2Doc, CDocument)
  21.     //{{AFX_MSG_MAP(CIC_2Doc)
  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. // CIC_2Doc construction/destruction
  29.  
  30. CIC_2Doc::CIC_2Doc()
  31. {
  32.     // TODO: add one-time construction code here
  33.  
  34. }
  35.  
  36. CIC_2Doc::~CIC_2Doc()
  37. {
  38. }
  39.  
  40. BOOL CIC_2Doc::OnNewDocument()
  41. {
  42.     if (!CDocument::OnNewDocument())
  43.         return FALSE;
  44.  
  45.     // Initialize the doc object's members
  46.  
  47.     return TRUE;
  48. }
  49.  
  50. /////////////////////////////////////////////////////////////////////////////
  51. // CIC_2Doc serialization
  52.  
  53. void CIC_2Doc::Serialize(CArchive& ar)
  54. {
  55.     if (ar.IsStoring())
  56.     {
  57.         // TODO: add storing code here
  58.     }
  59.     else
  60.     {
  61.         // TODO: add loading code here
  62.     }
  63. }
  64.  
  65. /////////////////////////////////////////////////////////////////////////////
  66. // CIC_2Doc diagnostics
  67.  
  68. #ifdef _DEBUG
  69. void CIC_2Doc::AssertValid() const
  70. {
  71.     CDocument::AssertValid();
  72. }
  73.  
  74. void CIC_2Doc::Dump(CDumpContext& dc) const
  75. {
  76.     CDocument::Dump(dc);
  77. }
  78. #endif //_DEBUG
  79.  
  80. /////////////////////////////////////////////////////////////////////////////
  81. // CIC_2Doc commands
  82.