home *** CD-ROM | disk | FTP | other *** search
/ Computer Buyer 1996 March / buyer-0396.iso / abc.z / OLE_VVW.CPP < prev    next >
C/C++ Source or Header  |  1995-09-15  |  2KB  |  73 lines

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