home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / com / dcom / atldraw / atlddoc.cpp next >
C/C++ Source or Header  |  1998-04-02  |  2KB  |  93 lines

  1. // ATLDrawDoc.cpp : implementation of the CATLDrawDoc class
  2. //
  3. // This is a part of the ActiveX Template Library.
  4. // Copyright (C) 1996 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // ActiveX Template Library Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // ActiveX Template Library product.
  12. //
  13.  
  14. #include "preatldr.h"
  15. #include "ATLDraw.h"
  16.  
  17. #include "ATLDDoc.h"
  18.  
  19. #ifdef _DEBUG
  20. #define new DEBUG_NEW
  21. #undef THIS_FILE
  22. static char THIS_FILE[] = __FILE__;
  23. #endif
  24.  
  25. /////////////////////////////////////////////////////////////////////////////
  26. // CATLDrawDoc
  27.  
  28. IMPLEMENT_DYNCREATE(CATLDrawDoc, CDocument)
  29.  
  30. BEGIN_MESSAGE_MAP(CATLDrawDoc, CDocument)
  31.     //{{AFX_MSG_MAP(CATLDrawDoc)
  32.         // NOTE - the ClassWizard will add and remove mapping macros here.
  33.         //    DO NOT EDIT what you see in these blocks of generated code!
  34.     //}}AFX_MSG_MAP
  35. END_MESSAGE_MAP()
  36.  
  37. /////////////////////////////////////////////////////////////////////////////
  38. // CATLDrawDoc construction/destruction
  39.  
  40. CATLDrawDoc::CATLDrawDoc()
  41. {
  42.     // TODO: add one-time construction code here
  43.  
  44. }
  45.  
  46. CATLDrawDoc::~CATLDrawDoc()
  47. {
  48. }
  49.  
  50. BOOL CATLDrawDoc::OnNewDocument()
  51. {
  52.     if (!CDocument::OnNewDocument())
  53.         return FALSE;
  54.  
  55.     // TODO: add reinitialization code here
  56.     // (SDI documents will reuse this document)
  57.  
  58.     return TRUE;
  59. }
  60.  
  61. /////////////////////////////////////////////////////////////////////////////
  62. // CATLDrawDoc serialization
  63.  
  64. void CATLDrawDoc::Serialize(CArchive& ar)
  65. {
  66.     if (ar.IsStoring())
  67.     {
  68.         // TODO: add storing code here
  69.     }
  70.     else
  71.     {
  72.         // TODO: add loading code here
  73.     }
  74. }
  75.  
  76. /////////////////////////////////////////////////////////////////////////////
  77. // CATLDrawDoc diagnostics
  78.  
  79. #ifdef _DEBUG
  80. void CATLDrawDoc::AssertValid() const
  81. {
  82.     CDocument::AssertValid();
  83. }
  84.  
  85. void CATLDrawDoc::Dump(CDumpContext& dc) const
  86. {
  87.     CDocument::Dump(dc);
  88. }
  89. #endif //_DEBUG
  90.  
  91. /////////////////////////////////////////////////////////////////////////////
  92. // CATLDrawDoc commands
  93.