www.pudn.com > PlayMedia.rar > PlayMediaView.h
// PlayMediaView.h : interface of the CPlayMediaView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_PLAYMEDIAVIEW_H__9B1E74DC_4B11_4523_9BB5_DACD978221B4__INCLUDED_)
#define AFX_PLAYMEDIAVIEW_H__9B1E74DC_4B11_4523_9BB5_DACD978221B4__INCLUDED_
#include "wmpplayer4.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "PlayMediaDoc.h"
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 void OnOperOpena();
afx_msg void OnOperOpenv();
afx_msg void OnOperPlaya();
afx_msg void OnOperPlayv();
afx_msg void OnOperStopa();
afx_msg void OnOperStopv();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
//}}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__9B1E74DC_4B11_4523_9BB5_DACD978221B4__INCLUDED_)