VideoCaptureView.h
上传用户:czshopping
上传日期:2022-05-22
资源大小:5430k
文件大小:2k
源码类别:

视频捕捉/采集

开发平台:

Visual C++

  1. // VideoCaptureView.h : interface of the CVideoCaptureView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_VIDEOCAPTUREVIEW_H__AC8EBC2F_91AA_47ED_9B7E_20D32D00EE84__INCLUDED_)
  5. #define AFX_VIDEOCAPTUREVIEW_H__AC8EBC2F_91AA_47ED_9B7E_20D32D00EE84__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include <vfw.h>
  10. class CVideoCaptureView : public CView
  11. {
  12. protected: // create from serialization only
  13. CVideoCaptureView();
  14. DECLARE_DYNCREATE(CVideoCaptureView)
  15. // Attributes
  16. public:
  17. CVideoCaptureDoc* GetDocument();
  18.     HDRAWDIB m_hdd;
  19. // Operations
  20. public:
  21. // Overrides
  22. // ClassWizard generated virtual function overrides
  23. //{{AFX_VIRTUAL(CVideoCaptureView)
  24. public:
  25. virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  26. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  27. protected:
  28. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  29. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  30. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  31. //}}AFX_VIRTUAL
  32. // Implementation
  33. public:
  34. virtual ~CVideoCaptureView();
  35. #ifdef _DEBUG
  36. virtual void AssertValid() const;
  37. virtual void Dump(CDumpContext& dc) const;
  38. #endif
  39. protected:
  40. // Generated message map functions
  41. protected:
  42. //{{AFX_MSG(CVideoCaptureView)
  43. // NOTE - the ClassWizard will add and remove member functions here.
  44. //    DO NOT EDIT what you see in these blocks of generated code !
  45. //}}AFX_MSG
  46. DECLARE_MESSAGE_MAP()
  47. };
  48. #ifndef _DEBUG  // debug version in VideoCaptureView.cpp
  49. inline CVideoCaptureDoc* CVideoCaptureView::GetDocument()
  50.    { return (CVideoCaptureDoc*)m_pDocument; }
  51. #endif
  52. /////////////////////////////////////////////////////////////////////////////
  53. //{{AFX_INSERT_LOCATION}}
  54. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  55. #endif // !defined(AFX_VIDEOCAPTUREVIEW_H__AC8EBC2F_91AA_47ED_9B7E_20D32D00EE84__INCLUDED_)