www.pudn.com > shipinbofang.rar > PlayMediaView.h
// PlayMediaView.h : interface of the CPlayMediaView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_PLAYMEDIAVIEW_H__F02D8B4A_3070_4840_BAB1_26BB3BA7CB9A__INCLUDED_)
#define AFX_PLAYMEDIAVIEW_H__F02D8B4A_3070_4840_BAB1_26BB3BA7CB9A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "wmpplayer4.h" // Added by ClassView
class CWMPPlayer4;//前示申明
class CPlayMediaView : public CView
{
protected: // create from serialization only
CPlayMediaView();
DECLARE_DYNCREATE(CPlayMediaView)
// Attributes
public:
CPlayMediaDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPlayMediaView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
CString m_strMusic;///////音频文件名
CString m_strVideo;///////视频文件名
CWMPPlayer4 *m_Music;/////用来播放音频
CWMPPlayer4 *m_Video;/////用来播放视频
virtual ~CPlayMediaView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CPlayMediaView)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnOperOpenv();
afx_msg void OnOperPlayv();
afx_msg void OnOperStopv();
afx_msg void OnOperOpena();
afx_msg void OnOperPlaya();
afx_msg void OnOperStopa();
afx_msg void OnSize(UINT nType, int cx, int cy);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in PlayMediaView.cpp
inline CPlayMediaDoc* CPlayMediaView::GetDocument()
{ return (CPlayMediaDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PLAYMEDIAVIEW_H__F02D8B4A_3070_4840_BAB1_26BB3BA7CB9A__INCLUDED_)