mfc1Doc.cpp 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. // mfc1Doc.cpp : implementation of the Cmfc1Doc class
  2. //
  3. // clang-format off
  4. #include "stdafx.h"
  5. #include "mfc1.h"
  6. #include "mfc1Doc.h"
  7. // clang-format on
  8. #ifdef _DEBUG
  9. # define new DEBUG_NEW
  10. #endif
  11. // Cmfc1Doc
  12. IMPLEMENT_DYNCREATE(Cmfc1Doc, CDocument)
  13. BEGIN_MESSAGE_MAP(Cmfc1Doc, CDocument)
  14. END_MESSAGE_MAP()
  15. // Cmfc1Doc construction/destruction
  16. Cmfc1Doc::Cmfc1Doc()
  17. {
  18. // TODO: add one-time construction code here
  19. }
  20. Cmfc1Doc::~Cmfc1Doc()
  21. {
  22. }
  23. BOOL Cmfc1Doc::OnNewDocument()
  24. {
  25. if (!CDocument::OnNewDocument())
  26. return FALSE;
  27. // TODO: add reinitialization code here
  28. // (SDI documents will reuse this document)
  29. return TRUE;
  30. }
  31. // Cmfc1Doc serialization
  32. void Cmfc1Doc::Serialize(CArchive& ar)
  33. {
  34. if (ar.IsStoring()) {
  35. // TODO: add storing code here
  36. } else {
  37. // TODO: add loading code here
  38. }
  39. }
  40. // Cmfc1Doc diagnostics
  41. #ifdef _DEBUG
  42. void Cmfc1Doc::AssertValid() const
  43. {
  44. CDocument::AssertValid();
  45. }
  46. void Cmfc1Doc::Dump(CDumpContext& dc) const
  47. {
  48. CDocument::Dump(dc);
  49. }
  50. #endif //_DEBUG
  51. // Cmfc1Doc commands