home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 6 / mastvb6.iso / leadtools / ocx32.lt / LTCDBDOC.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-10  |  1.4 KB  |  69 lines

  1. // ltcdbDoc.cpp : implementation of the CLtcdbDoc class
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "ltcdb.h"
  6.  
  7. #include "ltcdbSet.h"
  8. #include "ltcdbDoc.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. // CLtcdbDoc
  18.  
  19. IMPLEMENT_DYNCREATE(CLtcdbDoc, CDocument)
  20.  
  21. BEGIN_MESSAGE_MAP(CLtcdbDoc, CDocument)
  22.     //{{AFX_MSG_MAP(CLtcdbDoc)
  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. // CLtcdbDoc construction/destruction
  30.  
  31. CLtcdbDoc::CLtcdbDoc()
  32. {
  33.     // TODO: add one-time construction code here
  34.  
  35. }
  36.  
  37. CLtcdbDoc::~CLtcdbDoc()
  38. {
  39. }
  40.  
  41. BOOL CLtcdbDoc::OnNewDocument()
  42. {
  43.     if (!CDocument::OnNewDocument())
  44.         return FALSE;
  45.  
  46.     // TODO: add reinitialization code here
  47.     // (SDI documents will reuse this document)
  48.     SetTitle("");
  49.     return TRUE;
  50. }
  51.  
  52. /////////////////////////////////////////////////////////////////////////////
  53. // CLtcdbDoc diagnostics
  54.  
  55. #ifdef _DEBUG
  56. void CLtcdbDoc::AssertValid() const
  57. {
  58.     CDocument::AssertValid();
  59. }
  60.  
  61. void CLtcdbDoc::Dump(CDumpContext& dc) const
  62. {
  63.     CDocument::Dump(dc);
  64. }
  65. #endif //_DEBUG
  66.  
  67. /////////////////////////////////////////////////////////////////////////////
  68. // CLtcdbDoc commands
  69.