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

  1. // vbitsdoc.cpp : implementation of the CVbits32Doc class
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "vbits32.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. // CVbits32Doc
  16.  
  17. IMPLEMENT_DYNCREATE(CVbits32Doc, CDocument)
  18.  
  19. BEGIN_MESSAGE_MAP(CVbits32Doc, CDocument)
  20.     //{{AFX_MSG_MAP(CVbits32Doc)
  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. // CVbits32Doc construction/destruction
  28.  
  29. CVbits32Doc::CVbits32Doc()
  30. {
  31.     // TODO: add one-time construction code here
  32.  
  33. }
  34.  
  35. CVbits32Doc::~CVbits32Doc()
  36. {
  37. }
  38.  
  39. BOOL CVbits32Doc::OnNewDocument()
  40. {
  41.     if (!CDocument::OnNewDocument())
  42.         return FALSE;
  43.  
  44.     // TODO: add reinitialization code here
  45.     // (SDI documents will reuse this document)
  46.  
  47.     return TRUE;
  48. }
  49.  
  50. /////////////////////////////////////////////////////////////////////////////
  51. // CVbits32Doc serialization
  52.  
  53. void CVbits32Doc::Serialize(CArchive& ar)
  54. {
  55.     // CEditView contains an edit control which handles all serialization
  56.     ((CEditView*)m_viewList.GetHead())->SerializeRaw(ar);
  57. }
  58.  
  59. /////////////////////////////////////////////////////////////////////////////
  60. // CVbits32Doc diagnostics
  61.  
  62. #ifdef _DEBUG
  63. void CVbits32Doc::AssertValid() const
  64. {
  65.     CDocument::AssertValid();
  66. }
  67.  
  68. void CVbits32Doc::Dump(CDumpContext& dc) const
  69. {
  70.     CDocument::Dump(dc);
  71. }
  72. #endif //_DEBUG
  73.  
  74. /////////////////////////////////////////////////////////////////////////////
  75. // CVbits32Doc commands
  76.