CalDoc.cpp
Upload User: kelijie
Upload Date: 2007-01-01
Package Size: 123k
Code Size: 1k
Category:

Graph program

Development Platform:

Visual C++

  1. // CalDoc.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "ebdlib2.h"
  5. #include "CalDoc.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CCalculatorDoc
  13. IMPLEMENT_DYNCREATE(CCalculatorDoc, CDocument)
  14. CCalculatorDoc::CCalculatorDoc()
  15.      :CStandardDoc()
  16. {
  17. }
  18. BOOL CCalculatorDoc::OnNewDocument()
  19. {
  20. if (!CDocument::OnNewDocument())
  21. return FALSE;
  22. return TRUE;
  23. }
  24. CCalculatorDoc::~CCalculatorDoc()
  25. {
  26. }
  27. BEGIN_MESSAGE_MAP(CCalculatorDoc, CDocument)
  28. //{{AFX_MSG_MAP(CCalculatorDoc)
  29. // NOTE - the ClassWizard will add and remove mapping macros here.
  30. //}}AFX_MSG_MAP
  31. END_MESSAGE_MAP()
  32. /////////////////////////////////////////////////////////////////////////////
  33. // CCalculatorDoc diagnostics
  34. #ifdef _DEBUG
  35. void CCalculatorDoc::AssertValid() const
  36. {
  37. CDocument::AssertValid();
  38. }
  39. void CCalculatorDoc::Dump(CDumpContext& dc) const
  40. {
  41. CDocument::Dump(dc);
  42. }
  43. #endif //_DEBUG
  44. /////////////////////////////////////////////////////////////////////////////
  45. // CCalculatorDoc serialization
  46. void CCalculatorDoc::Serialize(CArchive& ar)
  47. {
  48. if (ar.IsStoring())
  49. {
  50. // TODO: add storing code here
  51. }
  52. else
  53. {
  54. // TODO: add loading code here
  55. }
  56. }
  57. /////////////////////////////////////////////////////////////////////////////
  58. // CCalculatorDoc commands