DemoDoc.cpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // DemoDoc.cpp : implementation of the CDemoDoc class
  2. //
  3. #include "stdafx.h"
  4. #include "Demo.h"
  5. #include "DemoDoc.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CDemoDoc
  13. IMPLEMENT_DYNCREATE(CDemoDoc, CDocument)
  14. BEGIN_MESSAGE_MAP(CDemoDoc, CDocument)
  15. //{{AFX_MSG_MAP(CDemoDoc)
  16. //}}AFX_MSG_MAP
  17. END_MESSAGE_MAP()
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CDemoDoc construction/destruction
  20. CDemoDoc::CDemoDoc()
  21. {
  22. }
  23. CDemoDoc::~CDemoDoc()
  24. {
  25. }
  26. BOOL CDemoDoc::OnNewDocument()
  27. {
  28. if (!CDocument::OnNewDocument())
  29. return FALSE;
  30. return TRUE;
  31. }
  32. /////////////////////////////////////////////////////////////////////////////
  33. // CDemoDoc serialization
  34. void CDemoDoc::Serialize(CArchive& ar)
  35. {
  36. if (ar.IsStoring())
  37. {
  38. }
  39. else
  40. {
  41. }
  42. }
  43. /////////////////////////////////////////////////////////////////////////////
  44. // CDemoDoc diagnostics
  45. #ifdef _DEBUG
  46. void CDemoDoc::AssertValid() const
  47. {
  48. CDocument::AssertValid();
  49. }
  50. void CDemoDoc::Dump(CDumpContext& dc) const
  51. {
  52. CDocument::Dump(dc);
  53. }
  54. #endif //_DEBUG
  55. /////////////////////////////////////////////////////////////////////////////
  56. // CDemoDoc commands