home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / database / mfcrows / mfcrowdoc.cpp < prev    next >
C/C++ Source or Header  |  1998-03-26  |  2KB  |  80 lines

  1. // MFCRowDoc.cpp : implementation of the CMFCRowDoc class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #include "stdafx.h"
  14. #include "MFCRow.h"
  15.  
  16. #include "MFCRowSet.h"
  17. #include "MFCRowDoc.h"
  18.  
  19. #ifdef _DEBUG
  20. #define new DEBUG_NEW
  21. #undef THIS_FILE
  22. static char THIS_FILE[] = __FILE__;
  23. #endif
  24.  
  25. /////////////////////////////////////////////////////////////////////////////
  26. // CMFCRowDoc
  27.  
  28. IMPLEMENT_DYNCREATE(CMFCRowDoc, CDocument)
  29.  
  30. BEGIN_MESSAGE_MAP(CMFCRowDoc, CDocument)
  31.     //{{AFX_MSG_MAP(CMFCRowDoc)
  32.         // NOTE - the ClassWizard will add and remove mapping macros here.
  33.         //    DO NOT EDIT what you see in these blocks of generated code!
  34.     //}}AFX_MSG_MAP
  35. END_MESSAGE_MAP()
  36.  
  37. /////////////////////////////////////////////////////////////////////////////
  38. // CMFCRowDoc construction/destruction
  39.  
  40. CMFCRowDoc::CMFCRowDoc()
  41. {
  42.     // TODO: add one-time construction code here
  43.  
  44. }
  45.  
  46. CMFCRowDoc::~CMFCRowDoc()
  47. {
  48. }
  49.  
  50. BOOL CMFCRowDoc::OnNewDocument()
  51. {
  52.     if (!CDocument::OnNewDocument())
  53.         return FALSE;
  54.  
  55.     // TODO: add reinitialization code here
  56.     // (SDI documents will reuse this document)
  57.  
  58.     return TRUE;
  59. }
  60.  
  61.  
  62.  
  63. /////////////////////////////////////////////////////////////////////////////
  64. // CMFCRowDoc diagnostics
  65.  
  66. #ifdef _DEBUG
  67. void CMFCRowDoc::AssertValid() const
  68. {
  69.     CDocument::AssertValid();
  70. }
  71.  
  72. void CMFCRowDoc::Dump(CDumpContext& dc) const
  73. {
  74.     CDocument::Dump(dc);
  75. }
  76. #endif //_DEBUG
  77.  
  78. /////////////////////////////////////////////////////////////////////////////
  79. // CMFCRowDoc commands
  80.