home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c08 / lab01 / ex01 / joindoc.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.4 KB  |  69 lines

  1. // JoinDoc.cpp : implementation of the CJoinDoc class
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "Join.h"
  6.  
  7. #include "JoinSet.h"
  8. #include "JoinDoc.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. // CJoinDoc
  18.  
  19. IMPLEMENT_DYNCREATE(CJoinDoc, CDocument)
  20.  
  21. BEGIN_MESSAGE_MAP(CJoinDoc, CDocument)
  22.     //{{AFX_MSG_MAP(CJoinDoc)
  23.         // NOTE - the ClassWizard will add and remove mapping macros here.
  24.         //    DO NOT EDIT what you see in these blocks of generated code!
  25.     //}}AFX_MSG_MAP
  26. END_MESSAGE_MAP()
  27.  
  28. /////////////////////////////////////////////////////////////////////////////
  29. // CJoinDoc construction/destruction
  30.  
  31. CJoinDoc::CJoinDoc()
  32. {
  33.     // TODO: add one-time construction code here
  34.  
  35. }
  36.  
  37. CJoinDoc::~CJoinDoc()
  38. {
  39. }
  40.  
  41. BOOL CJoinDoc::OnNewDocument()
  42. {
  43.     if (!CDocument::OnNewDocument())
  44.         return FALSE;
  45.  
  46.     // TODO: add reinitialization code here
  47.     // (SDI documents will reuse this document)
  48.  
  49.     return TRUE;
  50. }
  51.  
  52. /////////////////////////////////////////////////////////////////////////////
  53. // CJoinDoc diagnostics
  54.  
  55. #ifdef _DEBUG
  56. void CJoinDoc::AssertValid() const
  57. {
  58.     CDocument::AssertValid();
  59. }
  60.  
  61. void CJoinDoc::Dump(CDumpContext& dc) const
  62. {
  63.     CDocument::Dump(dc);
  64. }
  65. #endif //_DEBUG
  66.  
  67. /////////////////////////////////////////////////////////////////////////////
  68. // CJoinDoc commands
  69.