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

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