StdDoc.cpp
上传用户:kelijie
上传日期:2007-01-01
资源大小:123k
文件大小:2k
源码类别:

图形图象

开发平台:

Visual C++

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