?? videocompressdlg.h
字號(hào):
// VideoCompressDlg.h : header file
//
#if !defined(AFX_VIDEOCOMPRESSDLG_H__08242D67_521F_40D5_B63B_5524E66F1584__INCLUDED_)
#define AFX_VIDEOCOMPRESSDLG_H__08242D67_521F_40D5_B63B_5524E66F1584__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CVideoCompressDlg dialog
#include <dshow.h>
#pragma comment (lib,"Strmiids")
#pragma comment (lib,"quartz")
#include <uuids.h>
#include <strmif.h>
class CVideoCompressDlg : public CDialog
{
// Construction
public:
void OnGraphNotify(WPARAM wParam,LPARAM lParam);
CVideoCompressDlg(CWnd* pParent = NULL); // standard constructor
//Add new members
IMediaControl *pMediaControl ; //媒體控制
IMoniker *pMoniker; //監(jiān)視器
IBaseFilter *pSrc ;
IBaseFilter *pMux ,*pWriter,*pCompress; //過(guò)濾器
IFileSinkFilter2 *pSink ; //文件接收
IGraphBuilder *pGraph; //過(guò)濾圖表
IMediaEventEx *pEvent;
BOOL m_Completed; //壓縮是否完成
BOOL m_IsCompressing; //壓縮是否正在進(jìn)行
REFERENCE_TIME m_TotalTime; //壓縮總時(shí)間
IMediaSeeking *pSeek;
IPin* FindPin(IBaseFilter *pFilter, PIN_DIRECTION dir);
// Dialog Data
//{{AFX_DATA(CVideoCompressDlg)
enum { IDD = IDD_VIDEOCOMPRESS_DIALOG };
CStatic m_Progress;
CEdit m_DesFile;
CEdit m_SourceFile;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CVideoCompressDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CVideoCompressDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
virtual void OnOK();
afx_msg void OnSourceBrown();
afx_msg void OnDesBrown();
afx_msg void OnStartCompress();
virtual void OnCancel();
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_VIDEOCOMPRESSDLG_H__08242D67_521F_40D5_B63B_5524E66F1584__INCLUDED_)
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -