SimpleMailView.cpp
上传用户:weimei12
上传日期:2022-08-11
资源大小:185k
文件大小:1k
- // SimpleMailView.cpp : implementation of the CSimpleMailView class
- //
- #include "stdafx.h"
- #include "SimpleMail.h"
- #include "SimpleMailDoc.h"
- #include "SimpleMailView.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #endif
- // CSimpleMailView
- IMPLEMENT_DYNCREATE(CSimpleMailView, CView)
- BEGIN_MESSAGE_MAP(CSimpleMailView, CView)
- END_MESSAGE_MAP()
- // CSimpleMailView construction/destruction
- CSimpleMailView::CSimpleMailView()
- {
- // TODO: add construction code here
- }
- CSimpleMailView::~CSimpleMailView()
- {
- }
- void CSimpleMailView::OnDraw(CDC* pDC)
- {
- CSimpleMailDoc* pDoc = GetDocument();
- ASSERT_VALID(pDoc);
- // TODO: add draw code for native data here
- }
- BOOL CSimpleMailView::PreCreateWindow(CREATESTRUCT& cs)
- {
- // TODO: Modify the Window class or styles here by modifying
- // the CREATESTRUCT cs
- return CView::PreCreateWindow(cs);
- }
- // CSimpleMailView diagnostics
- #ifdef _DEBUG
- void CSimpleMailView::AssertValid() const
- {
- CView::AssertValid();
- }
- void CSimpleMailView::Dump(CDumpContext& dc) const
- {
- CView::Dump(dc);
- }
- CSimpleMailDoc* CSimpleMailView::GetDocument() const // non-debug version is inline
- {
- ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CSimpleMailDoc)));
- return (CSimpleMailDoc*)m_pDocument;
- }
- #endif //_DEBUG
- // CSimpleMailView message handlers