home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / mac / SiteBldr / AMOVIE / SDK / _SETUP / COMMON.Z / mfcvw.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-01-26  |  2.1 KB  |  85 lines

  1. //==========================================================================;
  2. //
  3. //  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. //  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. //  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. //  PURPOSE.
  7. //
  8. //  Copyright (c) 1992 - 1996  Microsoft Corporation.  All Rights Reserved.
  9. //
  10. //--------------------------------------------------------------------------;
  11. //
  12. // playvw.cpp : implementation of the CPlayerView class
  13. //
  14.  
  15. #include "stdafx.h"
  16. #include "mfcplay.h"
  17.  
  18. #include "mfcdoc.h"
  19. #include "mfcvw.h"
  20.  
  21. #ifdef _DEBUG
  22. #undef THIS_FILE
  23. static char BASED_CODE THIS_FILE[] = __FILE__;
  24. #endif
  25.  
  26. /////////////////////////////////////////////////////////////////////////////
  27. // CPlayerView
  28.  
  29. IMPLEMENT_DYNCREATE(CPlayerView, CView)
  30.  
  31. BEGIN_MESSAGE_MAP(CPlayerView, CView)
  32.     //{{AFX_MSG_MAP(CPlayerView)
  33.         // NOTE - the ClassWizard will add and remove mapping macros here.
  34.         //    DO NOT EDIT what you see in these blocks of generated code!
  35.     //}}AFX_MSG_MAP
  36. END_MESSAGE_MAP()
  37.  
  38. /////////////////////////////////////////////////////////////////////////////
  39. // CPlayerView construction/destruction
  40.  
  41. CPlayerView::CPlayerView()
  42. {
  43.     // TODO: add construction code here
  44.  
  45. }
  46.  
  47. CPlayerView::~CPlayerView()
  48. {
  49. }
  50.  
  51. /////////////////////////////////////////////////////////////////////////////
  52. // CPlayerView drawing
  53.  
  54. void CPlayerView::OnDraw(CDC* pDC)
  55. {
  56.     CPlayerDoc* pDoc = GetDocument();
  57.     ASSERT_VALID(pDoc);
  58.  
  59.     // TODO: add draw code for native data here
  60. }
  61.  
  62. /////////////////////////////////////////////////////////////////////////////
  63. // CPlayerView diagnostics
  64.  
  65. #ifdef _DEBUG
  66. void CPlayerView::AssertValid() const
  67. {
  68.     CView::AssertValid();
  69. }
  70.  
  71. void CPlayerView::Dump(CDumpContext& dc) const
  72. {
  73.     CView::Dump(dc);
  74. }
  75.  
  76. CPlayerDoc* CPlayerView::GetDocument() // non-debug version is inline
  77. {
  78.     ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CPlayerDoc)));
  79.     return (CPlayerDoc*)m_pDocument;
  80. }
  81. #endif //_DEBUG
  82.  
  83. /////////////////////////////////////////////////////////////////////////////
  84. // CPlayerView message handlers
  85.