home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / windows / c / sprmgr20 / sprite / demo32 / spritdoc.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-03  |  1.7 KB  |  81 lines

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