Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

149 lines
2.9 KiB

  1. // WIATestDoc.cpp : implementation of the CWIATestDoc class
  2. //
  3. #include "stdafx.h"
  4. #include "WIATest.h"
  5. #include "WIATestDoc.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CWIATestDoc
  13. IMPLEMENT_DYNCREATE(CWIATestDoc, CDocument)
  14. BEGIN_MESSAGE_MAP(CWIATestDoc, CDocument)
  15. //{{AFX_MSG_MAP(CWIATestDoc)
  16. // NOTE - the ClassWizard will add and remove mapping macros here.
  17. // DO NOT EDIT what you see in these blocks of generated code!
  18. //}}AFX_MSG_MAP
  19. END_MESSAGE_MAP()
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CWIATestDoc construction/destruction
  22. /**************************************************************************\
  23. * CWIATestDoc::CWIATestDoc()
  24. *
  25. * Constructor for the CWIATestDoc class
  26. *
  27. *
  28. * Arguments:
  29. *
  30. * none
  31. *
  32. * Return Value:
  33. *
  34. * none
  35. *
  36. * History:
  37. *
  38. * 2/14/1999 Original Version
  39. *
  40. \**************************************************************************/
  41. CWIATestDoc::CWIATestDoc()
  42. {
  43. }
  44. /**************************************************************************\
  45. * CWIATestDoc::~CWIATestDoc()
  46. *
  47. * Destructor for the CWIATestDoc class
  48. *
  49. *
  50. * Arguments:
  51. *
  52. * none
  53. *
  54. * Return Value:
  55. *
  56. * none
  57. *
  58. * History:
  59. *
  60. * 2/14/1999 Original Version
  61. *
  62. \**************************************************************************/
  63. CWIATestDoc::~CWIATestDoc()
  64. {
  65. }
  66. /**************************************************************************\
  67. * CWIATestDoc::OnNewDocument()
  68. *
  69. * Creates a new document (not used at this time)
  70. *
  71. *
  72. * Arguments:
  73. *
  74. * none
  75. *
  76. * Return Value:
  77. *
  78. * none
  79. *
  80. * History:
  81. *
  82. * 2/14/1999 Original Version
  83. *
  84. \**************************************************************************/
  85. BOOL CWIATestDoc::OnNewDocument()
  86. {
  87. if (!CDocument::OnNewDocument())
  88. return FALSE;
  89. return TRUE;
  90. }
  91. /////////////////////////////////////////////////////////////////////////////
  92. // CWIATestDoc serialization
  93. /**************************************************************************\
  94. * CWIATestDoc::Serialize()
  95. *
  96. * saves/loads a WIATest Document (not used at this time)
  97. *
  98. *
  99. * Arguments:
  100. *
  101. * ar - CArchive Object
  102. *
  103. * Return Value:
  104. *
  105. * none
  106. *
  107. * History:
  108. *
  109. * 2/14/1999 Original Version
  110. *
  111. \**************************************************************************/
  112. void CWIATestDoc::Serialize(CArchive& ar)
  113. {
  114. if (ar.IsStoring())
  115. {
  116. // TODO: add storing code here
  117. }
  118. else
  119. {
  120. // TODO: add loading code here
  121. }
  122. }
  123. /////////////////////////////////////////////////////////////////////////////
  124. // CWIATestDoc diagnostics
  125. #ifdef _DEBUG
  126. void CWIATestDoc::AssertValid() const
  127. {
  128. CDocument::AssertValid();
  129. }
  130. void CWIATestDoc::Dump(CDumpContext& dc) const
  131. {
  132. CDocument::Dump(dc);
  133. }
  134. #endif //_DEBUG
  135. /////////////////////////////////////////////////////////////////////////////
  136. // CWIATestDoc commands