home *** CD-ROM | disk | FTP | other *** search
/ Prima Shareware 3 / DuCom_Prima-Shareware-3_cd1.bin / PROGRAMO / C / SPLASH / NULLVIEW.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-12  |  1.6 KB  |  73 lines

  1. // nullview.cpp : implementation of the CNullView class
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "splash.h"
  6.  
  7. #include "nulldoc.h"
  8. #include "nullview.h"
  9.  
  10. #ifdef _DEBUG
  11. #undef THIS_FILE
  12. static char BASED_CODE THIS_FILE[] = __FILE__;
  13. #endif
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CNullView
  17.  
  18. IMPLEMENT_DYNCREATE(CNullView, CView)
  19.  
  20. BEGIN_MESSAGE_MAP(CNullView, CView)
  21.     //{{AFX_MSG_MAP(CNullView)
  22.         // NOTE - the ClassWizard will add and remove mapping macros here.
  23.         //    DO NOT EDIT what you see in these blocks of generated code!
  24.     //}}AFX_MSG_MAP
  25. END_MESSAGE_MAP()
  26.  
  27. /////////////////////////////////////////////////////////////////////////////
  28. // CNullView construction/destruction
  29.  
  30. CNullView::CNullView()
  31. {
  32.     // TODO: add construction code here
  33. }
  34.  
  35. CNullView::~CNullView()
  36. {
  37. }
  38.  
  39. /////////////////////////////////////////////////////////////////////////////
  40. // CNullView drawing
  41.  
  42. void CNullView::OnDraw(CDC* pDC)
  43. {
  44.     CNullDoc* pDoc = GetDocument();
  45.     ASSERT_VALID(pDoc);
  46.  
  47.     // TODO: add draw code for native data here
  48. }
  49.  
  50. /////////////////////////////////////////////////////////////////////////////
  51. // CNullView diagnostics
  52.  
  53. #ifdef _DEBUG
  54. void CNullView::AssertValid() const
  55. {
  56.     CView::AssertValid();
  57. }
  58.  
  59. void CNullView::Dump(CDumpContext& dc) const
  60. {
  61.     CView::Dump(dc);
  62. }
  63.  
  64. CNullDoc* CNullView::GetDocument() // non-debug version is inline
  65. {
  66.     ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CNullDoc)));
  67.     return (CNullDoc*)m_pDocument;
  68. }
  69. #endif //_DEBUG
  70.  
  71. /////////////////////////////////////////////////////////////////////////////
  72. // CNullView message handlers
  73.