www.pudn.com > SOAVI2BMP_ACTIVEMOVIE.rar > SOAVI2BMPDlg.h, change:2007-05-23,size:4369b


// SOAVI2BMPDlg.h : header file 
// 
//{{AFX_INCLUDES() 
#include "activemovie3.h" 
//}}AFX_INCLUDES 
 
#if !defined(AFX_SOAVI2BMPDLG_H__A16D0E8B_AAA4_44F2_97C0_0FE4E8AC7E00__INCLUDED_) 
#define AFX_SOAVI2BMPDLG_H__A16D0E8B_AAA4_44F2_97C0_0FE4E8AC7E00__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
///////////////////////////////////////////////////////////////////////////// 
// CSOAVI2BMPDlg dialog 
 
#include <vfw.h> 
 
//#include "Avi2Bmp.h" 
 
class CSOAVI2BMPDlg : public CDialog 
{ 
// Construction 
public: 
	CBitmapButton m_btnAVIPlay; 
	CBitmapButton m_btnAVIPause; 
	CBitmapButton m_btnAVIStop; 
	CBitmapButton m_btnAVIFirst; 
	CBitmapButton m_btnAVILast; 
	CBitmapButton m_btnAVIPrev; 
	CBitmapButton m_btnAVINext; 
 
	CBitmapButton m_btnSetFDir; // 设置保存目录按钮 
 
 
	CSOAVI2BMPDlg(CWnd* pParent = NULL);	// standard constructor 
 
// Dialog Data 
	//{{AFX_DATA(CSOAVI2BMPDlg) 
	enum { IDD = IDD_SOAVI2BMP_DIALOG }; 
	CStatic	m_pictBitmap; 
	CListBox	m_listBMPFile; 
	CEdit	m_editSliderBuddy; 
	CSliderCtrl	m_SliderCtrl; 
	CEdit	m_editAviFileName; 
	CListBox	m_listAviFileInfo; 
	CString	m_strBmpDir; 
	UINT	m_nFrameSaveFrom; 
	UINT	m_nFrameSaveTo; 
	CActiveMovie3	m_ctlActiveMovie; 
	//}}AFX_DATA 
 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CSOAVI2BMPDlg) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	void SetVolume(CActiveMovie3* pActMovie); 
//	CString  m_filename; 
	 
//	CAvi2Bmp	  m_avi2bmp; 
	BOOL		  m_bAviLoaded; 
	int			  m_nFrameNo; // 帧号 
	PAVIFILE	  m_pAviFile; 
	CString		  m_strAviFileName; //AVI文件名 
	PAVISTREAM	  m_pAviStream;	//Handle for video stream 
	AVISTREAMINFO m_AviStreamInfo;	//Information about video stream 
	PGETFRAME     m_pGetFrame; 
 
	//AVI文件内容之属性 
	int m_nFrameWidth;    //Frame's width 
	int m_nFrameHeight;   //Frame's Height 
	int m_nFrameFirst;    //First Frame 
	int m_nFrameLast;     //Last Frame 
	int m_nFrameTotalNum; //Frames,总帧数 
	int m_nFramePerSec;   //Frames Per Second 
 
	int m_nFramePlayBegin; //起始播放帧 
	int m_nFramePlayEnd;   //结尾播放帧 
 
	int m_nFrameCurSel;  // 当前选中帧 
 
	BOOL GetAviFileInfo(void); 
 
	void _error(const char* m); 
 
	CString m_strBmpFilePrefix; 
	CString m_strBmpFileName; 
 
protected: 
	HICON m_hIcon; 
 
	// Generated message map functions 
	//{{AFX_MSG(CSOAVI2BMPDlg) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 
	afx_msg void OnPaint(); 
	afx_msg HCURSOR OnQueryDragIcon(); 
	afx_msg void OnFileOpenAvi(); 
	afx_msg void OnAviLast(); 
	afx_msg void OnAviFirst(); 
	afx_msg void OnAviPrev(); 
	afx_msg void OnAviNext(); 
	afx_msg void OnDestroy(); 
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); 
	afx_msg void OnSetfdir(); 
	afx_msg void OnButtonBeginTransfer(); 
	afx_msg void OnAviPlay(); 
	afx_msg void OnAviPause(); 
	afx_msg void OnAviStop(); 
	afx_msg void OnButtonShowBmpfile(); 
	afx_msg void OnDblclkListCreatedBmpFile(); 
	afx_msg void OnHelpAbout(); 
	afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized); 
	afx_msg void OnAudioVolume(); 
	afx_msg void OnAudioBalance(); 
	afx_msg void OnFileCloseAvi(); 
	afx_msg void OnOperationPlayStart(); 
	afx_msg void OnOperationPause(); 
	afx_msg void OnOperationStop(); 
	afx_msg void OnVideoSize1x(); 
	afx_msg void OnVideoSize2x(); 
	afx_msg void OnVideoSizeFullScreen(); 
	afx_msg void OnStateChangeActivemoviecontrol1(long oldState, long newState); 
	afx_msg void OnDisplayModeChangeActivemoviecontrol1(); 
	afx_msg void OnReadyStateChangeActivemoviecontrol1(long ReadyState); 
	afx_msg void OnErrorActivemoviecontrol1(short SCode, LPCTSTR Description, LPCTSTR Source, BOOL FAR* CancelDisplay); 
	afx_msg void OnOpenCompleteActivemoviecontrol1(); 
	DECLARE_EVENTSINK_MAP() 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
private: 
	void DoPlayAvi(int nFrom,int nTo, int nRptCount ); 
	bool SaveFrame(const char* fn, int frameno); 
	void ShowBitmapFromFile(LPCSTR szFilename); 
	void ShowSelectedBitmapFile(); 
 
	void MoveMovieWindow(); 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_SOAVI2BMPDLG_H__A16D0E8B_AAA4_44F2_97C0_0FE4E8AC7E00__INCLUDED_)