home *** CD-ROM | disk | FTP | other *** search
- // nullview.cpp : implementation of the CNullView class
- //
-
- #include "stdafx.h"
- #include "splash.h"
-
- #include "nulldoc.h"
- #include "nullview.h"
-
- #ifdef _DEBUG
- #undef THIS_FILE
- static char BASED_CODE THIS_FILE[] = __FILE__;
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
- // CNullView
-
- IMPLEMENT_DYNCREATE(CNullView, CView)
-
- BEGIN_MESSAGE_MAP(CNullView, CView)
- //{{AFX_MSG_MAP(CNullView)
- // 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()
-
- /////////////////////////////////////////////////////////////////////////////
- // CNullView construction/destruction
-
- CNullView::CNullView()
- {
- // TODO: add construction code here
- }
-
- CNullView::~CNullView()
- {
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CNullView drawing
-
- void CNullView::OnDraw(CDC* pDC)
- {
- CNullDoc* pDoc = GetDocument();
- ASSERT_VALID(pDoc);
-
- // TODO: add draw code for native data here
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CNullView diagnostics
-
- #ifdef _DEBUG
- void CNullView::AssertValid() const
- {
- CView::AssertValid();
- }
-
- void CNullView::Dump(CDumpContext& dc) const
- {
- CView::Dump(dc);
- }
-
- CNullDoc* CNullView::GetDocument() // non-debug version is inline
- {
- ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CNullDoc)));
- return (CNullDoc*)m_pDocument;
- }
- #endif //_DEBUG
-
- /////////////////////////////////////////////////////////////////////////////
- // CNullView message handlers
-