www.pudn.com > MyVideoPlayer.rar > MyVideoPlayer1Dlg.h


// MyVideoPlayer1Dlg.h : header file 
///////////////////////////////////////////////////////// 
// Writer:  Dennis  
// Jeffeson177@sohu.com 
///////////////////////////////////////////////////////// 
#if !defined(AFX_MYVIDEOPLAYER1DLG_H__5418F631_84CF_406E_8F6E_E3768E3F4972__INCLUDED_) 
#define AFX_MYVIDEOPLAYER1DLG_H__5418F631_84CF_406E_8F6E_E3768E3F4972__INCLUDED_ 
 
#include  
#include "CDXGraph.h"	// Added by ClassView 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
///////////////////////////////////////////////////////////////////////////// 
// CMyVideoPlayer1Dlg dialog 
 
#define SLIDER_TIMER 100 
 
class CMyVideoPlayer1Dlg : public CDialog 
{ 
// Construction 
public: 
	CMyVideoPlayer1Dlg(CWnd* pParent = NULL);	// standard constructor 
	~CMyVideoPlayer1Dlg(); 
// Dialog Data 
	//{{AFX_DATA(CMyVideoPlayer1Dlg) 
	enum { IDD = IDD_MYVIDEOPLAYER1_DIALOG }; 
	CSliderCtrl	m_sliderGraph; 
	CStatic	m_videoWindow; 
	//}}AFX_DATA 
 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CMyVideoPlayer1Dlg) 
	public: 
	virtual BOOL PreTranslateMessage(MSG* pMsg); 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	void CreateGraph(); 
	void DestroyGraph(); 
	void RestoreFromFullScreen(); 
	void ShowVRPropertyPage(); 
	HRESULT FindFilterByInterface(REFIID riid, IBaseFilter** ppFilter); 
 
	CDXGraph    *m_pFilterGraph; 
	CString      m_sourceFile;      // 源文件 
	UINT         m_sliderTimer;     // 定时器ID 
 
	HICON m_hIcon; 
 
	// Generated message map functions 
	//{{AFX_MSG(CMyVideoPlayer1Dlg) 
	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 OnButtonopen(); 
	afx_msg void OnButtonpause(); 
	afx_msg void OnButtonfullscreen(); 
	afx_msg void OnButtonplay(); 
	afx_msg void OnButtonstop(); 
	afx_msg void OnButtontest(); 
	afx_msg void OnButtongrab(); 
	afx_msg void OnTimer(UINT nIDEvent); 
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); 
	//}}AFX_MSG 
	afx_msg LRESULT OnGraphNotify(WPARAM inWParam, LPARAM inLParam); 
	DECLARE_MESSAGE_MAP() 
	 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_MYVIDEOPLAYER1DLG_H__5418F631_84CF_406E_8F6E_E3768E3F4972__INCLUDED_)