Click here to Skip to main content
Click here to Skip to main content
 
Add your own
alternative version

A Basic Media Player

, 10 Jan 2013
Using MCIWnd wrapper class to write a simple media player
 #if !defined(AFX_FULLMOVIE_H__E5CBAC7B_9650_4439_80C3_4F8341C8EB19__INCLUDED_)
#define AFX_FULLMOVIE_H__E5CBAC7B_9650_4439_80C3_4F8341C8EB19__INCLUDED_
 
#include "RegistrySettings.h"	// Added by ClassView
#include "easyplayer.h"

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// FullMovie.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CFullMovie dialog

class CFullMovie : public CDialog
{
// Construction
public:
	CRegistrySettings rs;
	int lVol;
	int iPlaying;
	CString sPath;
	long lPos;
	CFullMovie(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CFullMovie)
	enum { IDD = IDD_MOVIE };
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CFullMovie)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	CEasyPlayer ep;
	// Generated message map functions
	//{{AFX_MSG(CFullMovie)
	virtual BOOL OnInitDialog();
	afx_msg void OnTimer(UINT nIDEvent);
	virtual void OnOK();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_FULLMOVIE_H__E5CBAC7B_9650_4439_80C3_4F8341C8EB19__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)

About the Author

M. Bonvari
Other
Iran (Islamic Republic Of) Iran (Islamic Republic Of)
No Biography provided

| Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 10 Jan 2013
Article Copyright 2003 by M. Bonvari
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid