📄 vidcapview.h
字号:
#include "VFWWnd.h"
class CVidCapView : public CView
{
public:
CVidCapDoc* GetDocument();
CAVICapWnd m_wndCap;
//{{AFX_VIRTUAL(CVidCapView)
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual void OnInitialUpdate();
//}}AFX_VIRTUAL
virtual ~CVidCapView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
CVidCapView();
DECLARE_DYNCREATE(CVidCapView)
void Connect(int nDeviceID);
//{{AFX_MSG(CVidCapView)
afx_msg void OnFileConnect();
afx_msg void OnOptionsAudioformat();
afx_msg void OnOptionsOverlay();
afx_msg void OnUpdateOptionsOverlay(CCmdUI* pCmdUI);
afx_msg void OnOptionsPreview();
afx_msg void OnUpdateOptionsPreview(CCmdUI* pCmdUI);
afx_msg void OnOptionsVideodisplay();
afx_msg void OnOptionsVideoformat();
afx_msg void OnOptionsVideosource();
afx_msg void OnUpdateOptionsVideodisplay(CCmdUI* pCmdUI);
afx_msg void OnUpdateOptionsVideoformat(CCmdUI* pCmdUI);
afx_msg void OnUpdateOptionsVideosource(CCmdUI* pCmdUI);
afx_msg void OnCaptureSingleframe();
afx_msg void OnUpdateCaptureSingleframe(CCmdUI* pCmdUI);
afx_msg void OnFileDisconnect();
afx_msg void OnUpdateFileDisconnect(CCmdUI* pCmdUI);
afx_msg void OnEditCopy();
afx_msg void OnUpdateEditCopy(CCmdUI* pCmdUI);
afx_msg void OnFileSavecapturedvideoas();
afx_msg void OnUpdateFileSavecapturedvideoas(CCmdUI* pCmdUI);
afx_msg void OnFileAllocatefilespace();
afx_msg void OnUpdateFileAllocatefilespace(CCmdUI* pCmdUI);
afx_msg void OnFileLoadpalette();
afx_msg void OnUpdateFileLoadpalette(CCmdUI* pCmdUI);
afx_msg void OnFileSetcapturefile();
afx_msg void OnUpdateFileSetcapturefile(CCmdUI* pCmdUI);
afx_msg void OnFileSavepalette();
afx_msg void OnUpdateFileSavepalette(CCmdUI* pCmdUI);
afx_msg void OnFileSavesingleframe();
afx_msg void OnUpdateFileSavesingleframe(CCmdUI* pCmdUI);
afx_msg void OnFilePlaycapturedvideo();
afx_msg void OnUpdateFilePlaycapturedvideo(CCmdUI* pCmdUI);
afx_msg void OnEditPastepalette();
afx_msg void OnUpdateEditPastepalette(CCmdUI* pCmdUI);
afx_msg void OnOptionsCompression();
afx_msg void OnUpdateOptionsCompression(CCmdUI* pCmdUI);
afx_msg void OnUpdateOptionsAudioformat(CCmdUI* pCmdUI);
afx_msg void OnCaptureVideo();
afx_msg void OnUpdateCaptureVideo(CCmdUI* pCmdUI);
afx_msg void OnCaptureFrames();
afx_msg void OnUpdateCaptureFrames(CCmdUI* pCmdUI);
afx_msg void OnDestroy();
afx_msg void OnOptionsStretch();
afx_msg void OnUpdateOptionsStretch(CCmdUI* pCmdUI);
afx_msg void OnSize(UINT nType, int cx, int cy);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
//Profile Settings
void LoadSettings();
void SaveSettings();
CString m_sCaptureFile;
DWORD m_dwCaptureRate;
DWORD m_dwPreviewRate;
BOOL m_bPreview;
BOOL m_bOverlay;
BOOL m_bCaptureAudio;
BOOL m_bLimitEnabled;
UINT m_wTimeLimit;
WAVEFORMATEX* m_pWaveFormat;
UINT m_nWaveFormatSize;
int m_nDefaultDevice;
int m_nWidth;
int m_nHeight;
WORD m_wBitCount;
BOOL m_bStretch;
};
#ifndef _DEBUG // debug version in VidCapView.cpp
inline CVidCapDoc* CVidCapView::GetDocument()
{ return (CVidCapDoc*)m_pDocument; }
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -