📄 directshoweventdlg.h
字号:
// DirectShowEventDlg.h : header file
//
#if !defined(AFX_DIRECTSHOWEVENTDLG_H__71A12478_E511_4AC1_BC2D_ECCEA434FB9D__INCLUDED_)
#define AFX_DIRECTSHOWEVENTDLG_H__71A12478_E511_4AC1_BC2D_ECCEA434FB9D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CDirectShowEventDlg dialog
#define CM_COMPLETE WM_USER+1
#pragma comment (lib,"Strmiids")
#pragma comment (lib,"quartz")
#include <dshow.h>
class CDirectShowEventDlg : public CDialog
{
// Construction
public:
void Done(WPARAM wParam, LPARAM lParam);
void OnCancel();
CDirectShowEventDlg(CWnd* pParent = NULL); // standard constructor
IMediaControl *pMediaControl ; //媒体控制
IGraphBuilder *pGraph; //过滤图表
IBaseFilter *pSrc; //过滤器
IMoniker *pMoniker; //监视器
BOOL m_Previewed; //是否进行预览
IMediaEventEx *pEvent; //事件
IVideoWindow * pViewWnd; //视频预览窗口
BOOL m_Completed; //预览是否完成
HANDLE m_hThread; //线程句柄
// Dialog Data
//{{AFX_DATA(CDirectShowEventDlg)
enum { IDD = IDD_DIRECTSHOWEVENT_DIALOG };
CStatic m_Panel;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDirectShowEventDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CDirectShowEventDlg)
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 OnSetFile();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DIRECTSHOWEVENTDLG_H__71A12478_E511_4AC1_BC2D_ECCEA434FB9D__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -