mfc1Doc.cpp 1005 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. // TODO: add storing code here
  34. } else {
  35. // TODO: add loading code here
  36. }
  37. }
  38. // Cmfc1Doc diagnostics
  39. #ifdef _DEBUG
  40. void Cmfc1Doc::AssertValid() const
  41. {
  42. CDocument::AssertValid();
  43. }
  44. void Cmfc1Doc::Dump(CDumpContext& dc) const
  45. {
  46. CDocument::Dump(dc);
  47. }
  48. #endif //_DEBUG
  49. // Cmfc1Doc commands