⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 videoplaydlg.h

📁 一个在WINCE5.0下开发的MP4播放器,可以播放多种视频文件,画面优质.
💻 H
字号:
// VideoPlayDlg.h : header file
//

#if !defined(AFX_VIDEOPLAYDLG_H__17F2341F_153C_49D9_A78B_42A4B4225E1C__INCLUDED_)
#define AFX_VIDEOPLAYDLG_H__17F2341F_153C_49D9_A78B_42A4B4225E1C__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#include "FileListDlg.h"
#include "Coordinate.h"
#include "skin\\xSkinButton.h"
#include "skin\\BitmapSlider.h"
#include "../battery/Battery.h"
#include "../battery/PMPMessage.h"

#ifdef TESTPLAYER
#include "player\\Player.h"
#endif

/////////////////////////////////////////////////////////////////////////////
// CVideoPlayDlg dialog

class CVideoPlayDlg : public CDialog
{
// Construction
public:
	CVideoPlayDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CVideoPlayDlg)
	enum { IDD = IDD_VIDEOPLAY_DIALOG };
	CStatic	m_VideoWin;
	CBitmapSlider	m_sliderVol;
	CBitmapSlider	m_sliderPro;
	CStatic	m_Title;
	CStatic	m_Time;
	//}}AFX_DATA
	int		m_nMax;
	int		m_nMin;
	int		m_nPos;
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CVideoPlayDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CVideoPlayDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnClose();
	afx_msg void OnPlay();
	afx_msg void OnStop();
	afx_msg void OnPause();
	afx_msg void OnMute();
	afx_msg void OnVol();
	afx_msg void OnOpenFile();
	afx_msg void OnNextFile();
	afx_msg void OnLastFile();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	//}}AFX_MSG
	afx_msg LRESULT OnBitmapSliderMoved(WPARAM wParam, LPARAM lParam);
	afx_msg LRESULT OnBitmapSliderMoving(WPARAM wParam, LPARAM lParam);
	DECLARE_MESSAGE_MAP()

private:
	CBitmapButton	m_btnClose;
	CBitmapButton	m_btnBackward;
	CBitmapButton	m_btnPlay;
	CBitmapButton	m_btnStop;
	CBitmapButton	m_btnForward;
	CBitmapButton	m_btnPause;
	CBitmapButton	m_btnVol;
	CBitmapButton	m_btnOpen;
	CBitmapButton	m_btnMute;

	CFileListDlg *m_VideoList;

	BOOL m_bMute;
	TCHAR   m_chFileName[MAX_STRING];
	DOUBLE	m_dDuration;
	BOOL m_fullScreen;	// is on full-screen or not
	RECT m_videoWindow;
	DWORD	m_nVolume;
	//slider width
	int		m_nProWidth;
	int		m_nVolWidth;
	CBattery m_bat;

#ifdef TESTPLAYER
	CPlayer	 m_Player;
#endif
	CBitmap  m_BMPBG;
	CBitmap  m_BMPProSlide;
	CBitmap  m_BMPVolSlide;
	
	int m_nTimeHour;
	int m_nTimeMin;
	int	m_nTimeSec;

	void LoadAndLocateButtons();
	void DisplayTitle();
	void DisplayTime(TCHAR*  TotalTime,TCHAR* CurTime);
	void GetVideoDuration();
	TCHAR* GetFileName(TCHAR* szFullFileName);
	void VideoPlay();
	void ResetTimeAndSlider();
	void SwitchFullScreen();
	void DisplayAllControls(BOOL flag);
};

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

#endif // !defined(AFX_VIDEOPLAYDLG_H__17F2341F_153C_49D9_A78B_42A4B4225E1C__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -