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

  1. // cataldoc.cpp : implementation of the CCatalogDoc 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.  
  14. #include "stdafx.h"
  15. #include "catalog.h"
  16.  
  17. #include "tableset.h"
  18. #include "columnst.h"
  19. #include "cataldoc.h"
  20.  
  21. #ifdef _DEBUG
  22. #undef THIS_FILE
  23. static char BASED_CODE THIS_FILE[] = __FILE__;
  24. #endif
  25.  
  26. /////////////////////////////////////////////////////////////////////////////
  27. // CCatalogDoc
  28.  
  29. IMPLEMENT_DYNCREATE(CCatalogDoc, CDocument)
  30.  
  31. BEGIN_MESSAGE_MAP(CCatalogDoc, CDocument)
  32.     //{{AFX_MSG_MAP(CCatalogDoc)
  33.         // NOTE - the ClassWizard will add and remove mapping macros here.
  34.         //    DO NOT EDIT what you see in these blocks of generated code!
  35.     //}}AFX_MSG_MAP
  36. END_MESSAGE_MAP()
  37.  
  38. /////////////////////////////////////////////////////////////////////////////
  39. // CCatalogDoc construction/destruction
  40.  
  41. CCatalogDoc::CCatalogDoc()
  42. {
  43.     // TODO: add one-time construction code here
  44. }
  45.  
  46. CCatalogDoc::~CCatalogDoc()
  47. {
  48. }
  49.  
  50. BOOL CCatalogDoc::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. // CCatalogDoc diagnostics
  63.  
  64. #ifdef _DEBUG
  65. void CCatalogDoc::AssertValid() const
  66. {
  67.     CDocument::AssertValid();
  68. }
  69.  
  70. void CCatalogDoc::Dump(CDumpContext& dc) const
  71. {
  72.     CDocument::Dump(dc);
  73. }
  74. #endif //_DEBUG
  75.  
  76. /////////////////////////////////////////////////////////////////////////////
  77. // CCatalogDoc commands
  78.