home *** CD-ROM | disk | FTP | other *** search
/ PC Answers 1995 May / PC Answers CD-ROM 7 (Future Publishing) (May 1995).iso / vbits / code / shaw / vbits16 / vbitsdoc.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-13  |  1.6 KB  |  74 lines

  1. // vbitsdoc.cpp : implementation of the CVbits16Doc class
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "vbits16.h"
  6.  
  7. #include "vbitsdoc.h"
  8.  
  9. #ifdef _DEBUG
  10. #undef THIS_FILE
  11. static char BASED_CODE THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CVbits16Doc
  16.  
  17. IMPLEMENT_DYNCREATE(CVbits16Doc, CDocument)
  18.  
  19. BEGIN_MESSAGE_MAP(CVbits16Doc, CDocument)
  20.     //{{AFX_MSG_MAP(CVbits16Doc)
  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. // CVbits16Doc construction/destruction
  28.  
  29. CVbits16Doc::CVbits16Doc()
  30. {
  31.     // TODO: add one-time construction code here
  32. }
  33.  
  34. CVbits16Doc::~CVbits16Doc()
  35. {
  36. }
  37.  
  38. BOOL CVbits16Doc::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. // CVbits16Doc serialization
  51.  
  52. void CVbits16Doc::Serialize(CArchive& ar)
  53. {
  54.     ((CEditView*)m_viewList.GetHead())->SerializeRaw(ar);
  55. }
  56.  
  57. /////////////////////////////////////////////////////////////////////////////
  58. // CVbits16Doc diagnostics
  59.  
  60. #ifdef _DEBUG
  61. void CVbits16Doc::AssertValid() const
  62. {
  63.     CDocument::AssertValid();
  64. }
  65.  
  66. void CVbits16Doc::Dump(CDumpContext& dc) const
  67. {
  68.     CDocument::Dump(dc);
  69. }
  70. #endif //_DEBUG
  71.  
  72. /////////////////////////////////////////////////////////////////////////////
  73. // CVbits16Doc commands
  74.