www.pudn.com > MingPlayer.rar > MingPlayerView.cpp


// MingPlayerView.cpp : implementation of the CMingPlayerView class 
// 
 
#include "stdafx.h" 
#include "MingPlayer.h" 
 
#include "MingPlayerDoc.h" 
#include "MingPlayerView.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CMingPlayerView 
 
IMPLEMENT_DYNCREATE(CMingPlayerView, CView) 
 
BEGIN_MESSAGE_MAP(CMingPlayerView, CView) 
	//{{AFX_MSG_MAP(CMingPlayerView) 
		// 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() 
 
///////////////////////////////////////////////////////////////////////////// 
// CMingPlayerView construction/destruction 
 
CMingPlayerView::CMingPlayerView() 
{ 
	// TODO: add construction code here 
 
} 
 
CMingPlayerView::~CMingPlayerView() 
{ 
} 
 
BOOL CMingPlayerView::PreCreateWindow(CREATESTRUCT& cs) 
{ 
	// TODO: Modify the Window class or styles here by modifying 
	//  the CREATESTRUCT cs 
 
	return CView::PreCreateWindow(cs); 
} 
 
///////////////////////////////////////////////////////////////////////////// 
// CMingPlayerView drawing 
 
void CMingPlayerView::OnDraw(CDC* pDC) 
{ 
/*	CMingPlayerDoc* pDoc = GetDocument(); 
	ASSERT_VALID(pDoc);*/ 
	// TODO: add draw code for native data here 
} 
 
///////////////////////////////////////////////////////////////////////////// 
// CMingPlayerView diagnostics 
 
#ifdef _DEBUG 
void CMingPlayerView::AssertValid() const 
{ 
	CView::AssertValid(); 
} 
 
void CMingPlayerView::Dump(CDumpContext& dc) const 
{ 
	CView::Dump(dc); 
} 
 
CMingPlayerDoc* CMingPlayerView::GetDocument() // non-debug version is inline 
{ 
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMingPlayerDoc))); 
	return (CMingPlayerDoc*)m_pDocument; 
} 
#endif //_DEBUG 
 
///////////////////////////////////////////////////////////////////////////// 
// CMingPlayerView message handlers