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

📄 playdlg.h

📁 CE导航界面。 CE导航界面。
💻 H
字号:
//{{AFX_INCLUDES()
//#include "mediaplayer2.h"

#include   <dshow.h> 
#include   <streams.h> 


//}}AFX_INCLUDES
#if !defined(AFX_PLAYDLG_H__CF37CF6F_6EE0_447F_B1F4_93EFCA37009B__INCLUDED_)
#define AFX_PLAYDLG_H__CF37CF6F_6EE0_447F_B1F4_93EFCA37009B__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CPlayDlg dialog

class CPlayDlg : public CDialog
{
// Construction
public:
	int songNum;
	BOOL pauseStatus;
	BOOL isActiveVol;
	BOOL isPlay;
	CString wavlist;
	WIN32_FIND_DATA lpFileData;
	HANDLE file;
	HANDLE firstFile;

	CString directory;
	CString Wavpath;
	DWORD volumeValue;


	IGraphBuilder *m_pGraph; 
	// IGraphBuilder 接口提供了生成Filter Graph相关的方法
	IMediaControl *m_pMediaControl; 
	// IMediaControl 接口提供了控制流经Filter Graph数据流的相关方法
	IMediaSeeking *m_pMediaSeeking; 
	// IMediaSeeking 提供了控制流的播放位置和播放速度的方法 
/*	IMediaEventEx *m_pEvent;  
	// IMediaEventEx 继承自IMediaEvent,提供了从Filter Graph 管理器获取事件消息的方法
	IBasicAudio * m_pBasicAudio; 
	// IBasicAudio接口提供了声音和声道的部分处理,如音量大小和音量均衡等
	IBaseFilter * m_pMpegAFilter; 
	// 在用新的过滤器(Filter)控制声道的时候用到的接口
	IVideoWindow * m_pVideoWindow; 	
*/	IMediaPosition *g_pMediaPosition;//用这个来取得/设置媒体播放的位置等。

	LONGLONG	m_curpos,m_stoppos,m_filelength;
	LONGLONG curTime,totalTime;
	double g_Len;

	int cursel;
//	int time;
	BOOL isActiveRe;
	BOOL isActiveKj;
	BOOL isActiveKt;
	BOOL isActiveTz;
	BOOL isActiveBf;
	CPlayDlg(CWnd* pParent = NULL);   // standard constructor
    BOOL SetVolume();
    BOOL GetVolume();

// Dialog Data
	//{{AFX_DATA(CPlayDlg)
	enum { IDD = IDD_PLAY };
	CListBox	m_musicList;
//	CMediaPlayer2	m_thePlayer;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPlayDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CPlayDlg)
	afx_msg void OnPaint();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	virtual BOOL OnInitDialog();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnTimer(UINT nIDEvent);

	afx_msg void OnDblclkList();
	afx_msg void OnSelchangeList1();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_PLAYDLG_H__CF37CF6F_6EE0_447F_B1F4_93EFCA37009B__INCLUDED_)

⌨️ 快捷键说明

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