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.

61 lines
1.5 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: VideoForWindowsWnd.h
  9. // AUTHOR: Chizhevskiy Sergey
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file for class CVideoForWindowsWnd
  13. //----------------------------------------------------------------------------
  14. #ifndef __VIDEO__FOR__WINDOWS__WND__H__INCLUDED__
  15. #define __VIDEO__FOR__WINDOWS__WND__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif // _MSC_VER > 1000
  19. #include "VideoWnd.h"
  20. class CVideoForWindowsWnd : public CVideoWnd
  21. {
  22. public:
  23. CVideoForWindowsWnd();
  24. CVideoForWindowsWnd( HWND hParentWnd, LPPOINT pPoint = NULL, LPSIZE pSize = NULL );
  25. virtual ~CVideoForWindowsWnd();
  26. public:
  27. virtual BOOL ShowWindow( int nShow );
  28. virtual BOOL Create(HWND hParentWnd, LPPOINT pPoint = NULL, LPSIZE pSize = NULL);
  29. virtual void UpdatePositions();
  30. virtual HWND GetSafeHwnd();
  31. protected:
  32. virtual HBITMAP StoreImage( HANDLE, LPCTSTR, INT nBitCount );
  33. virtual HBITMAP GetSnapshot();
  34. protected:
  35. HWND m_hVFWWnd;
  36. BOOL m_IsInitiated;
  37. };
  38. inline HWND CVideoForWindowsWnd::GetSafeHwnd()
  39. {
  40. if(m_IsInitiated)
  41. return m_hVFWWnd;
  42. return NULL;
  43. }
  44. inline void CVideoForWindowsWnd::UpdatePositions()
  45. {
  46. if(m_IsInitiated)
  47. ::InvalidateRect(m_hVFWWnd, NULL, FALSE);
  48. }
  49. #endif