home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / software / pelne / optionp / msmqocm.cab / testdoc.cpp < prev    next >
C/C++ Source or Header  |  1997-10-06  |  2KB  |  79 lines

  1. // testDoc.cpp : implementation of the CTestDoc class
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "MQApitst.h"
  6.  
  7. #include "testDoc.h"
  8.  
  9. #ifdef _DEBUG
  10. #define new DEBUG_NEW
  11. #undef THIS_FILE
  12. static char THIS_FILE[] = __FILE__;
  13. #endif
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CTestDoc
  17.  
  18. IMPLEMENT_DYNCREATE(CTestDoc, CDocument)
  19.  
  20. BEGIN_MESSAGE_MAP(CTestDoc, CDocument)
  21.     //{{AFX_MSG_MAP(CTestDoc)
  22.         // NOTE - the ClassWizard will add and remove mapping macros here.
  23.         //    DO NOT EDIT what you see in these blocks of generated code!
  24.     //}}AFX_MSG_MAP
  25. END_MESSAGE_MAP()
  26.  
  27. /////////////////////////////////////////////////////////////////////////////
  28. // CTestDoc construction/destruction
  29.  
  30. CTestDoc::CTestDoc()
  31. {
  32.     // TODO: add one-time construction code here
  33.  
  34. }
  35.  
  36. CTestDoc::~CTestDoc()
  37. {
  38. }
  39.  
  40. BOOL CTestDoc::OnNewDocument()
  41. {
  42.     if (!CDocument::OnNewDocument())
  43.         return FALSE;
  44.  
  45.     ((CEditView*)m_viewList.GetHead())->SetWindowText(NULL);
  46.  
  47.     // TODO: add reinitialization code here
  48.     // (SDI documents will reuse this document)
  49.  
  50.     return TRUE;
  51. }
  52.  
  53. /////////////////////////////////////////////////////////////////////////////
  54. // CTestDoc serialization
  55.  
  56. void CTestDoc::Serialize(CArchive& ar)
  57. {
  58.     // CEditView contains an edit control which handles all serialization
  59.     ((CEditView*)m_viewList.GetHead())->SerializeRaw(ar);
  60. }
  61.  
  62. /////////////////////////////////////////////////////////////////////////////
  63. // CTestDoc diagnostics
  64.  
  65. #ifdef _DEBUG
  66. void CTestDoc::AssertValid() const
  67. {
  68.     CDocument::AssertValid();
  69. }
  70.  
  71. void CTestDoc::Dump(CDumpContext& dc) const
  72. {
  73.     CDocument::Dump(dc);
  74. }
  75. #endif //_DEBUG
  76.  
  77. /////////////////////////////////////////////////////////////////////////////
  78. // CTestDoc commands
  79.