WalkLtDemoDoc.cpp 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. //Download by http://www.NewXing.com
  2. // WalkLtDemoDoc.cpp : implementation of the CWalkLtDemoDoc class
  3. //
  4. #include "stdafx.h"
  5. #include "WalkLtDemo.h"
  6. #include "WalkLtDemoDoc.h"
  7. #ifdef _DEBUG
  8. #define new DEBUG_NEW
  9. #undef THIS_FILE
  10. static char THIS_FILE[] = __FILE__;
  11. #endif
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CWalkLtDemoDoc
  14. IMPLEMENT_DYNCREATE(CWalkLtDemoDoc, CDocument)
  15. BEGIN_MESSAGE_MAP(CWalkLtDemoDoc, CDocument)
  16. //{{AFX_MSG_MAP(CWalkLtDemoDoc)
  17. // NOTE - the ClassWizard will add and remove mapping macros here.
  18. // DO NOT EDIT what you see in these blocks of generated code!
  19. //}}AFX_MSG_MAP
  20. END_MESSAGE_MAP()
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CWalkLtDemoDoc construction/destruction
  23. CWalkLtDemoDoc::CWalkLtDemoDoc()
  24. {
  25. // TODO: add one-time construction code here
  26. }
  27. CWalkLtDemoDoc::~CWalkLtDemoDoc()
  28. {
  29. }
  30. BOOL CWalkLtDemoDoc::OnNewDocument()
  31. {
  32. if (!CDocument::OnNewDocument())
  33. return FALSE;
  34. // TODO: add reinitialization code here
  35. // (SDI documents will reuse this document)
  36. return TRUE;
  37. }
  38. /////////////////////////////////////////////////////////////////////////////
  39. // CWalkLtDemoDoc serialization
  40. void CWalkLtDemoDoc::Serialize(CArchive& ar)
  41. {
  42. if (ar.IsStoring())
  43. {
  44. // TODO: add storing code here
  45. }
  46. else
  47. {
  48. // TODO: add loading code here
  49. }
  50. }
  51. /////////////////////////////////////////////////////////////////////////////
  52. // CWalkLtDemoDoc diagnostics
  53. #ifdef _DEBUG
  54. void CWalkLtDemoDoc::AssertValid() const
  55. {
  56. CDocument::AssertValid();
  57. }
  58. void CWalkLtDemoDoc::Dump(CDumpContext& dc) const
  59. {
  60. CDocument::Dump(dc);
  61. }
  62. #endif //_DEBUG
  63. /////////////////////////////////////////////////////////////////////////////
  64. // CWalkLtDemoDoc commands