www.pudn.com > MPlayer0623.zip > MPlayerDlg.h


// MPlayerDlg.h : header file 
// 
 
#if !defined(AFX_MPLAYERDLG_H__6AB8BBA7_2636_11D7_AF46_C68D6800C32D__INCLUDED_) 
#define AFX_MPLAYERDLG_H__6AB8BBA7_2636_11D7_AF46_C68D6800C32D__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#include "MatrixStatic.h" 
#include "BtnST.h" 
#include "MySliderControl.h" 
#include "Media.h"	// Added by ClassView 
//define the width and height of the MPlayer macro 
#ifndef MPLAYERWIDTH 
#define MPLAYERWIDTH 249  
#define MPLAYERHEIGHT 88 
#define MPLAYEREXT 220  //extend hight 
#endif  
 
#define NORMALSIZE 0 
#define DOUBLESIZE 1 
#define FULLSCREEN 2 
 
#define MAXPATH 100 
 
typedef struct myTimeStruct{ 
		UINT min;	//minute 
		UINT sec;	//second 
}myTime; 
///////////////////////////////////////////////////////////////////////////// 
// CMPlayerDlg dialog 
 
class CMPlayerDlg : public CDialog 
{ 
// Construction 
public: 
	CMPlayerDlg(CWnd* pParent = NULL);	// standard constructor 
	~CMPlayerDlg(); 
// Dialog Data 
	//{{AFX_DATA(CMPlayerDlg) 
	enum { IDD = IDD_MPLAYER_DIALOG }; 
	CListBox	m_list; 
	//}}AFX_DATA 
 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CMPlayerDlg) 
	public: 
	virtual BOOL PreTranslateMessage(MSG* pMsg); 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	HICON m_hIcon; 
	CButtonST m_btnInfo; 
	CButtonST m_btnClose; 
	CButtonST m_btnMiniWnd; 
	CButtonST m_btnPlay; 
	CButtonST m_btnOpen; 
	CButtonST m_btnPause; 
	CButtonST m_btnStop; 
	CButtonST m_btnVolInc; 
	CButtonST m_btnVolDec; 
	CButtonST m_btnFullScreen; 
	CMatrixStatic m_lcd; 
	CButtonST m_btnExt;			//extended media files list button  
	CButtonST m_btnListAdd; 
	CButtonST m_btnListRemove; 
 
	CMySliderControl m_sld; 
	// Generated message map functions 
	//{{AFX_MSG(CMPlayerDlg) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 
	afx_msg void OnPaint(); 
	afx_msg HCURSOR OnQueryDragIcon(); 
	afx_msg BOOL OnEraseBkgnd(CDC* pDC); 
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point); 
	afx_msg void OnMiniwnd(); 
	afx_msg void OnInfo(); 
	afx_msg void OnOpen(); 
	afx_msg void OnPlay(); 
	afx_msg void OnFullscreen(); 
	afx_msg void OnStop(); 
	afx_msg void OnPause(); 
	afx_msg void OnVolinc(); 
	afx_msg void OnTimer(UINT nIDEvent); 
	afx_msg void OnReleasedcaptureSlider(NMHDR* pNMHDR, LRESULT* pResult); 
	afx_msg void OnExt(); 
	afx_msg void OnDblclkList(); 
	afx_msg void OnListAdd(); 
	afx_msg void OnListRemove(); 
	afx_msg void OnDestroy(); 
	afx_msg void OnVolDec(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
private: 
	HACCEL m_hAccelTable; 
	bool OpenList(void); 
	bool SaveList(void); 
	bool Play(void); 
	bool OpenFiles(bool bListAdd=FALSE); 
	int m_totalFiles; 
	int m_iList; 
	CString m_curFile; 
	bool bExt; 
	LONG m_curPlaySec; 
	LONG m_totalSec; 
	int m_frameRate; 
	bool bPause; 
	void TimeIncToStr(CString &strTime); 
	bool bIsVideo; 
	myTime m_curPlayTime;			//current play time 
	UINT m_nTimer; 
	int iZoom; 
	bool bFirstPlay; 
	RECT m_mediaWndRect; 
	CWnd* GetMediaWnd(void); 
	LONG m_currentFrame;		 
	void InitSlider(void); 
	void UpdateWindowEx(bool bOpened); 
	bool bOpened;	//inditify file to be loaded 
	CMedia m_media; 
	void InitMPlayerFace();	//initialize the MPlayer face 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_MPLAYERDLG_H__6AB8BBA7_2636_11D7_AF46_C68D6800C32D__INCLUDED_)