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.

64 lines
1.6 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 24/03/2000
  5. // Last modification: 08/10/2003
  6. // Project Intruder Position Indicator
  7. // SUBSYSTEM: Video Camera Showing Window
  8. // FILE: VideoStaticWnd.h
  9. // AUTHOR: Chizhevskiy Sergey
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file for class CVideoStaticWnd
  13. //----------------------------------------------------------------------------
  14. #ifndef __VIDEO__STATIC__WND__H__INCLUDED__
  15. #define __VIDEO__STATIC__WND__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif // _MSC_VER > 1000
  19. #include "VideoForWindowsWnd.h"
  20. #include "VideoDirectShowWnd.h"
  21. #include "VideoFrameGrabberWnd.h"
  22. //#define VSW_BASE_CLASS CVideoForWindowsWnd
  23. #define VSW_BASE_CLASS CVideoDirectShowWnd
  24. //#define VSW_BASE_CLASS CVideoFrameGrabberWnd
  25. class CVideoStaticWnd :
  26. public VSW_BASE_CLASS
  27. {
  28. public:
  29. CVideoStaticWnd( CProfile *pProfile, HWND hParentWnd, LPPOINT pPoint, LPSIZE pSize );
  30. CVideoStaticWnd();
  31. virtual ~CVideoStaticWnd();
  32. public:
  33. void Enable( BOOL bEnable );
  34. virtual BOOL Create(HWND hParentWnd, LPPOINT pPoint, LPSIZE pSize );
  35. virtual HWND GetSafeHwnd() { return m_hWnd; }
  36. void Snapshot();
  37. private:
  38. LRESULT OnSize( WPARAM, LPARAM );
  39. void OnDraw( HDC );
  40. private:
  41. LRESULT WndProc(HWND, UINT, WPARAM, LPARAM);
  42. static LRESULT WndProc_( HWND, UINT, WPARAM, LPARAM );
  43. LRESULT OnMove(WPARAM, LPARAM);
  44. LRESULT OnPaint(WPARAM, LPARAM);
  45. private:
  46. HWND m_hWnd;
  47. HDC m_hMemDC;
  48. HBITMAP m_hMemBitmap;
  49. BOOL m_bEnabled;
  50. };
  51. #endif