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

  1. // QueryDefDoc.cpp : implementation of the CQueryDefDoc class
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "QueryDef.h"
  6.  
  7. #include "QDefSet.h"
  8. #include "QDefDoc.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. // CQueryDefDoc
  18.  
  19. IMPLEMENT_DYNCREATE(CQueryDefDoc, CDocument)
  20.  
  21. BEGIN_MESSAGE_MAP(CQueryDefDoc, CDocument)
  22.     //{{AFX_MSG_MAP(CQueryDefDoc)
  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. // CQueryDefDoc construction/destruction
  30.  
  31. CQueryDefDoc::CQueryDefDoc()
  32. {
  33.     // TODO: add one-time construction code here
  34.  
  35. }
  36.  
  37. CQueryDefDoc::~CQueryDefDoc()
  38. {
  39. }
  40.  
  41. BOOL CQueryDefDoc::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. // CQueryDefDoc diagnostics
  54.  
  55. #ifdef _DEBUG
  56. void CQueryDefDoc::AssertValid() const
  57. {
  58.     CDocument::AssertValid();
  59. }
  60.  
  61. void CQueryDefDoc::Dump(CDumpContext& dc) const
  62. {
  63.     CDocument::Dump(dc);
  64. }
  65. #endif //_DEBUG
  66.  
  67. /////////////////////////////////////////////////////////////////////////////
  68. // CQueryDefDoc commands
  69.