www.pudn.com > MpegDShow.rar > MpegImageDlg.h


// MpegImageDlg.h : header file 
// 
#include "CDXGraph.h" 
#include "MySocket.h" 
 
#if !defined(AFX_MPEGIMAGEDLG_H__A771BA73_FC71_42B0_A230_EA4CBA383353__INCLUDED_) 
#define AFX_MPEGIMAGEDLG_H__A771BA73_FC71_42B0_A230_EA4CBA383353__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
///////////////////////////////////////////////////////////////////////////// 
// CMpegImageDlg dialog 
 
class CMpegImageDlg : public CDialog 
{ 
private: 
	CSliderCtrl	m_SliderGraph; 
	CStatic	m_VideoWindow; 
	UINT m_SliderTimer;     // ¶¨Ê±Æ÷ID 
	UINT m_SaveImageTimer;  
	CString m_strFilePath; 
	CMySocket m_MyClientSocket; 
	 
	CDXGraph* m_FilterGraph;     // Filter Graph·â×° 
	void CreateGraph(const CString& strSourceFile);		 
	void DestroyGraph(void); 
	void CreateDir(CString strFilePath); 
	void SaveImage(CString filepath); 
	CString GetFileName(); 
// Construction 
public: 
	CMpegImageDlg(CWnd* pParent = NULL);	// standard constructor 
	~CMpegImageDlg(); 
// Dialog Data 
	//{{AFX_DATA(CMpegImageDlg) 
	enum { IDD = IDD_MPEGIMAGE_DIALOG }; 
		// NOTE: the ClassWizard will add data members here 
	//}}AFX_DATA 
 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CMpegImageDlg) 
	public: 
	virtual BOOL DestroyWindow(); 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	HICON m_hIcon; 
 
	// Generated message map functions 
	//{{AFX_MSG(CMpegImageDlg) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 
	afx_msg void OnPaint(); 
	afx_msg HCURSOR OnQueryDragIcon(); 
	afx_msg void OnOpenButton(); 
	afx_msg void OnPlayButton(); 
	afx_msg void OnTimer(UINT nIDEvent); 
	afx_msg void OnImageButton(); 
	afx_msg void OnStop(); 
	afx_msg void OnOutofmemorySliderGraph(NMHDR* pNMHDR, LRESULT* pResult); 
	afx_msg void OnCustomdrawSliderGraph(NMHDR* pNMHDR, LRESULT* pResult); 
	afx_msg void OnReleasedcaptureSliderGraph(NMHDR* pNMHDR, LRESULT* pResult); 
	afx_msg void OnPause(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_MPEGIMAGEDLG_H__A771BA73_FC71_42B0_A230_EA4CBA383353__INCLUDED_)