home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 23 / IOPROG_23.ISO / SOFT / VFORM.ZIP / Samples / vfDao / vfDaoDoc.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-10-10  |  1.7 KB  |  87 lines

  1. // vfDaoDoc.cpp : implementation of the CVfDaoDoc class
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "vfDao.h"
  6.  
  7. #include "vfDaoDoc.h"
  8.  
  9. #ifdef _DEBUG
  10. #define new DEBUG_NEW
  11. #undef THIS_FILE
  12. static char THIS_FILE[] = __FILE__;
  13. #endif
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CVfDaoDoc
  17.  
  18. IMPLEMENT_DYNCREATE(CVfDaoDoc, CDocument)
  19.  
  20. BEGIN_MESSAGE_MAP(CVfDaoDoc, CDocument)
  21.     //{{AFX_MSG_MAP(CVfDaoDoc)
  22.         // NOTE - the ClassWizard will add and remove mapping macros here.
  23.         //    DO NOT EDIT what you see in these blocks of generated code!
  24.     //}}AFX_MSG_MAP
  25. END_MESSAGE_MAP()
  26.  
  27. /////////////////////////////////////////////////////////////////////////////
  28. // CVfDaoDoc construction/destruction
  29.  
  30. CVfDaoDoc::CVfDaoDoc()
  31. {
  32.     // TODO: add one-time construction code here
  33.  
  34. }
  35.  
  36. CVfDaoDoc::~CVfDaoDoc()
  37. {
  38. }
  39.  
  40. BOOL CVfDaoDoc::OnNewDocument()
  41. {
  42.     if (!CDocument::OnNewDocument())
  43.         return FALSE;
  44.  
  45.     SetTitle("");
  46.  
  47.     // TODO: add reinitialization code here
  48.     // (SDI documents will reuse this document)
  49.  
  50.     return TRUE;
  51. }
  52.  
  53.  
  54.  
  55. /////////////////////////////////////////////////////////////////////////////
  56. // CVfDaoDoc serialization
  57.  
  58. void CVfDaoDoc::Serialize(CArchive& ar)
  59. {
  60.     if (ar.IsStoring())
  61.     {
  62.         // TODO: add storing code here
  63.     }
  64.     else
  65.     {
  66.         // TODO: add loading code here
  67.     }
  68. }
  69.  
  70. /////////////////////////////////////////////////////////////////////////////
  71. // CVfDaoDoc diagnostics
  72.  
  73. #ifdef _DEBUG
  74. void CVfDaoDoc::AssertValid() const
  75. {
  76.     CDocument::AssertValid();
  77. }
  78.  
  79. void CVfDaoDoc::Dump(CDumpContext& dc) const
  80. {
  81.     CDocument::Dump(dc);
  82. }
  83. #endif //_DEBUG
  84.  
  85. /////////////////////////////////////////////////////////////////////////////
  86. // CVfDaoDoc commands
  87.