www.pudn.com > VC_视频捕捉与帧处理.rar > CaptureTestView.h
// CaptureTestView.h : interface of the CCaptureTestView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_CAPTURETESTVIEW_H__31BCF2C4_E369_4197_89F1_F6A766DBB709__INCLUDED_)
#define AFX_CAPTURETESTVIEW_H__31BCF2C4_E369_4197_89F1_F6A766DBB709__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CCaptureTestView : public CView
{
protected: // create from serialization only
CCaptureTestView();
DECLARE_DYNCREATE(CCaptureTestView)
// Attributes
public:
CCaptureTestDoc* GetDocument();
CFrameGrabber m_FrameGrabber;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCaptureTestView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
//}}AFX_VIRTUAL
// Implementation
public:
virtual void OnInitialUpdate();
virtual ~CCaptureTestView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CCaptureTestView)
afx_msg void OnCaptureSetFormat();
afx_msg void OnCaptureSetSource();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnUpdateCaptureSetFormat(CCmdUI* pCmdUI);
afx_msg void OnUpdateCaptureSetSource(CCmdUI* pCmdUI);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in CaptureTestView.cpp
inline CCaptureTestDoc* CCaptureTestView::GetDocument()
{ return (CCaptureTestDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CAPTURETESTVIEW_H__31BCF2C4_E369_4197_89F1_F6A766DBB709__INCLUDED_)