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.8 KiB

  1. // mimeview.cpp : implementation of the CMimeView class
  2. //
  3. #include "stdafx.h"
  4. #include "mime.h"
  5. #include "mimedoc.h"
  6. #include "mimeview.h"
  7. #ifdef _DEBUG
  8. #undef THIS_FILE
  9. static char BASED_CODE THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CMimeView
  13. IMPLEMENT_DYNCREATE(CMimeView, CFormView)
  14. BEGIN_MESSAGE_MAP(CMimeView, CFormView)
  15. //{{AFX_MSG_MAP(CMimeView)
  16. // NOTE - the ClassWizard will add and remove mapping macros here.
  17. // DO NOT EDIT what you see in these blocks of generated code!
  18. //}}AFX_MSG_MAP
  19. END_MESSAGE_MAP()
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CMimeView construction/destruction
  22. CMimeView::CMimeView()
  23. : CFormView(CMimeView::IDD)
  24. {
  25. //{{AFX_DATA_INIT(CMimeView)
  26. // NOTE: the ClassWizard will add member initialization here
  27. //}}AFX_DATA_INIT
  28. // TODO: add construction code here
  29. }
  30. CMimeView::~CMimeView()
  31. {
  32. }
  33. void CMimeView::DoDataExchange(CDataExchange* pDX)
  34. {
  35. CFormView::DoDataExchange(pDX);
  36. //{{AFX_DATA_MAP(CMimeView)
  37. // NOTE: the ClassWizard will add DDX and DDV calls here
  38. //}}AFX_DATA_MAP
  39. }
  40. /////////////////////////////////////////////////////////////////////////////
  41. // CMimeView diagnostics
  42. #ifdef _DEBUG
  43. void CMimeView::AssertValid() const
  44. {
  45. CFormView::AssertValid();
  46. }
  47. void CMimeView::Dump(CDumpContext& dc) const
  48. {
  49. CFormView::Dump(dc);
  50. }
  51. CMimeDoc* CMimeView::GetDocument() // non-debug version is inline
  52. {
  53. ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMimeDoc)));
  54. return (CMimeDoc*)m_pDocument;
  55. }
  56. #endif //_DEBUG
  57. /////////////////////////////////////////////////////////////////////////////
  58. // CMimeView message handlers
  59. void CMimeView::OnInitialUpdate()
  60. {
  61. ResizeParentToFit();
  62. CFormView::OnInitialUpdate();
  63. }