Leaked source code of windows server 2003
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.

81 lines
1.6 KiB

  1. // mimedoc.cpp : implementation of the CMimeDoc class
  2. //
  3. #include "stdafx.h"
  4. #include "mime.h"
  5. #include "mimedoc.h"
  6. #ifdef _DEBUG
  7. #undef THIS_FILE
  8. static char BASED_CODE THIS_FILE[] = __FILE__;
  9. #endif
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CMimeDoc
  12. IMPLEMENT_DYNCREATE(CMimeDoc, CDocument)
  13. BEGIN_MESSAGE_MAP(CMimeDoc, CDocument)
  14. //{{AFX_MSG_MAP(CMimeDoc)
  15. // NOTE - the ClassWizard will add and remove mapping macros here.
  16. // DO NOT EDIT what you see in these blocks of generated code!
  17. //}}AFX_MSG_MAP
  18. END_MESSAGE_MAP()
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CMimeDoc construction/destruction
  21. CMimeDoc::CMimeDoc()
  22. {
  23. // TODO: add one-time construction code here
  24. }
  25. CMimeDoc::~CMimeDoc()
  26. {
  27. }
  28. BOOL CMimeDoc::OnNewDocument()
  29. {
  30. if (!CDocument::OnNewDocument())
  31. return FALSE;
  32. // TODO: add reinitialization code here
  33. // (SDI documents will reuse this document)
  34. return TRUE;
  35. }
  36. /////////////////////////////////////////////////////////////////////////////
  37. // CMimeDoc serialization
  38. void CMimeDoc::Serialize(CArchive& ar)
  39. {
  40. if (ar.IsStoring())
  41. {
  42. // TODO: add storing code here
  43. }
  44. else
  45. {
  46. // TODO: add loading code here
  47. }
  48. }
  49. /////////////////////////////////////////////////////////////////////////////
  50. // CMimeDoc diagnostics
  51. #ifdef _DEBUG
  52. void CMimeDoc::AssertValid() const
  53. {
  54. CDocument::AssertValid();
  55. }
  56. void CMimeDoc::Dump(CDumpContext& dc) const
  57. {
  58. CDocument::Dump(dc);
  59. }
  60. #endif //_DEBUG
  61. /////////////////////////////////////////////////////////////////////////////
  62. // CMimeDoc commands