home *** CD-ROM | disk | FTP | other *** search
/ 3D Games (Spidla) / 3dhry2.iso / Cube Drop 2001 1.0 / 3DFontDoc.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2003-03-17  |  1.8 KB  |  88 lines

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