Old fashion design for PC-104
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
2.1 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: VideoWnd.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of VideoWnd.h
  13. //----------------------------------------------------------------------------
  14. #if !defined(AFX_VIDEOWND_H__DF4980BB_1C5B_47C4_8FE2_6A55484CBF15__INCLUDED_)
  15. #define AFX_VIDEOWND_H__DF4980BB_1C5B_47C4_8FE2_6A55484CBF15__INCLUDED_
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif // _MSC_VER > 1000
  19. // VideoWnd.h : header file
  20. //
  21. #include "..\lglib\video\DirectShowVideo.h"
  22. #include "..\lglib\directdraw\LgDirectDrawVideo.h"
  23. #define WM_UPDATE_BITMAP (WM_USER+876)
  24. #define WM_VIDEO_SAMPLE (WM_USER+877)
  25. class CVideoWnd :
  26. public CWnd,
  27. public CDirectShowVideo,
  28. public CLgDirectDrawVideo
  29. {
  30. // Construction
  31. public:
  32. CVideoWnd();
  33. // Attributes
  34. public:
  35. // Operations
  36. public:
  37. BOOL Create( CWnd *pParentWnd, int x, int y, int nWidth, int nHeight );
  38. public:
  39. // Overrides
  40. // ClassWizard generated virtual function overrides
  41. //{{AFX_VIRTUAL(CVideoWnd)
  42. public:
  43. virtual BOOL DestroyWindow();
  44. protected:
  45. //}}AFX_VIRTUAL
  46. // Implementation
  47. public:
  48. virtual ~CVideoWnd();
  49. // Generated message map functions
  50. protected:
  51. //{{AFX_MSG(CVideoWnd)
  52. afx_msg void OnSize(UINT nType, int cx, int cy);
  53. afx_msg void OnPaint();
  54. //}}AFX_MSG
  55. LRESULT OnVideoSample( WPARAM, LPARAM );
  56. DECLARE_MESSAGE_MAP()
  57. protected:
  58. void OnDraw( CDC *pDC );
  59. private:
  60. virtual void OnVideoSample( double SampleTime );
  61. private:
  62. void SetCross();
  63. virtual CLgImageDIB& GetDirectDrawVideoDIB() { return GetDirectShowDIB(); }
  64. };
  65. /////////////////////////////////////////////////////////////////////////////
  66. //{{AFX_INSERT_LOCATION}}
  67. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  68. #endif // !defined(AFX_VIDEOWND_H__DF4980BB_1C5B_47C4_8FE2_6A55484CBF15__INCLUDED_)