home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / vb_code1 / ole_vbx1 / testvdoc.cpp < prev    next >
C/C++ Source or Header  |  1994-01-23  |  2KB  |  81 lines

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