home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pc3270sa.zip / apps / winaping / winapdoc.cpp < prev    next >
Text File  |  2002-02-28  |  2KB  |  84 lines

  1. // winapdoc.cpp : implementation of the CWinapingDoc class
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "winaping.h"
  6.  
  7. #include "winapdoc.h"
  8.  
  9. #ifdef _DEBUG
  10. #undef THIS_FILE
  11. static char BASED_CODE THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CWinapingDoc
  16.  
  17. IMPLEMENT_DYNCREATE(CWinapingDoc, CDocument)
  18.  
  19. BEGIN_MESSAGE_MAP(CWinapingDoc, CDocument)
  20.         //{{AFX_MSG_MAP(CWinapingDoc)
  21.                 // NOTE - the ClassWizard will add and remove mapping macros here.
  22.                 //    DO NOT EDIT what you see in these blocks of generated code!
  23.         //}}AFX_MSG_MAP
  24. END_MESSAGE_MAP()
  25.  
  26. /////////////////////////////////////////////////////////////////////////////
  27. // CWinapingDoc construction/destruction
  28.  
  29. CWinapingDoc::CWinapingDoc() : aping(NULL), alloctime(0), confirmtime(0),
  30.   partner(_T("")), cmcall(_T("")), cmrcmsg(_T("")),
  31.   stoprunning(FALSE), buffer(NULL)
  32. {
  33. }
  34.  
  35. CWinapingDoc::~CWinapingDoc()
  36. {
  37. }
  38.  
  39. BOOL CWinapingDoc::OnNewDocument()
  40. {
  41.         if (!CDocument::OnNewDocument())
  42.                 return FALSE;
  43.  
  44.         SetTitle(_T("Personal Communications"));
  45.  
  46.         // TODO: add reinitialization code here
  47.         // (SDI documents will reuse this document)
  48.  
  49.         return TRUE;
  50. }
  51.  
  52. /////////////////////////////////////////////////////////////////////////////
  53. // CWinapingDoc serialization
  54.  
  55. void CWinapingDoc::Serialize(CArchive& ar)
  56. {
  57.         if (ar.IsStoring())
  58.         {
  59.                 // TODO: add storing code here
  60.         }
  61.         else
  62.         {
  63.                 // TODO: add loading code here
  64.         }
  65. }
  66.  
  67. /////////////////////////////////////////////////////////////////////////////
  68. // CWinapingDoc diagnostics
  69.  
  70. #ifdef _DEBUG
  71. void CWinapingDoc::AssertValid() const
  72. {
  73. //      CDocument::AssertValid();         // ????? ASERT FAILED HERE ????
  74. }
  75.  
  76. void CWinapingDoc::Dump(CDumpContext& dc) const
  77. {
  78.         CDocument::Dump(dc);
  79. }
  80. #endif //_DEBUG
  81.  
  82. /////////////////////////////////////////////////////////////////////////////
  83. // CWinapingDoc commands
  84.