mfc1Doc.cpp 999 B

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