MyMonitorView.cpp
上传用户:deligs
上传日期:2007-01-08
资源大小:43k
文件大小:2k
- // MyMonitorView.cpp : implementation of the CMyMonitorView class
- //
- #include "stdafx.h"
- #include "MyMonitor.h"
- #include "MyMonitorDoc.h"
- #include "MyMonitorView.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CMyMonitorView
- IMPLEMENT_DYNCREATE(CMyMonitorView, CView)
- BEGIN_MESSAGE_MAP(CMyMonitorView, CView)
- //{{AFX_MSG_MAP(CMyMonitorView)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- // DO NOT EDIT what you see in these blocks of generated code!
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CMyMonitorView construction/destruction
- CMyMonitorView::CMyMonitorView()
- {
- // TODO: add construction code here
- }
- CMyMonitorView::~CMyMonitorView()
- {
- }
- BOOL CMyMonitorView::PreCreateWindow(CREATESTRUCT& cs)
- {
- // TODO: Modify the Window class or styles here by modifying
- // the CREATESTRUCT cs
- return CView::PreCreateWindow(cs);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMyMonitorView drawing
- void CMyMonitorView::OnDraw(CDC* pDC)
- {
- CMyMonitorDoc* pDoc = GetDocument();
- ASSERT_VALID(pDoc);
- // TODO: add draw code for native data here
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMyMonitorView diagnostics
- #ifdef _DEBUG
- void CMyMonitorView::AssertValid() const
- {
- CView::AssertValid();
- }
- void CMyMonitorView::Dump(CDumpContext& dc) const
- {
- CView::Dump(dc);
- }
- CMyMonitorDoc* CMyMonitorView::GetDocument() // non-debug version is inline
- {
- ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMyMonitorDoc)));
- return (CMyMonitorDoc*)m_pDocument;
- }
- #endif //_DEBUG
- /////////////////////////////////////////////////////////////////////////////
- // CMyMonitorView message handlers