home *** CD-ROM | disk | FTP | other *** search
/ BURKS 2 / BURKS_AUG97.ISO / BURKS / SOFTWARE / LIBS / ISDKC122.ZIP / ISDKDVW.CPP (.txt) < prev    next >
C/C++ Source or Header  |  1996-05-17  |  2KB  |  73 lines

  1. // isdkdvw.cpp : implementation of the CIsdkdemoView class
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "isdkdemo.h"
  6.  
  7. #include "isdkddoc.h"
  8. #include "isdkdvw.h"
  9.  
  10. #ifdef _DEBUG
  11. #undef THIS_FILE
  12. static char BASED_CODE THIS_FILE[] = __FILE__;
  13. #endif
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CIsdkdemoView
  17.  
  18. IMPLEMENT_DYNCREATE(CIsdkdemoView, CView)
  19.  
  20. BEGIN_MESSAGE_MAP(CIsdkdemoView, CView)
  21.     //{{AFX_MSG_MAP(CIsdkdemoView)
  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. // CIsdkdemoView construction/destruction
  29.  
  30. CIsdkdemoView::CIsdkdemoView()
  31. {
  32.     // TODO: add construction code here
  33. }
  34.  
  35. CIsdkdemoView::~CIsdkdemoView()
  36. {
  37. }
  38.  
  39. /////////////////////////////////////////////////////////////////////////////
  40. // CIsdkdemoView drawing
  41.  
  42. void CIsdkdemoView::OnDraw(CDC* pDC)
  43. {
  44.     CIsdkdemoDoc* pDoc = GetDocument();
  45.     ASSERT_VALID(pDoc);
  46.  
  47.     // TODO: add draw code for native data here
  48. }
  49.  
  50. /////////////////////////////////////////////////////////////////////////////
  51. // CIsdkdemoView diagnostics
  52.  
  53. #ifdef _DEBUG
  54. void CIsdkdemoView::AssertValid() const
  55. {
  56.     CView::AssertValid();
  57. }
  58.  
  59. void CIsdkdemoView::Dump(CDumpContext& dc) const
  60. {
  61.     CView::Dump(dc);
  62. }
  63.  
  64. CIsdkdemoDoc* CIsdkdemoView::GetDocument() // non-debug version is inline
  65. {
  66.     ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CIsdkdemoDoc)));
  67.     return (CIsdkdemoDoc*)m_pDocument;
  68. }
  69. #endif //_DEBUG
  70.  
  71. /////////////////////////////////////////////////////////////////////////////
  72. // CIsdkdemoView message handlers
  73.