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.

67 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: VideoWnd.h
  9. // AUTHOR: Chizhevskiy Sergey
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file for class CVideoWnd
  13. //----------------------------------------------------------------------------
  14. #ifndef __VIDEOWND__H__INCLUDED__
  15. #define __VIDEOWND__H__INCLUDED__
  16. #include "Structs.h"
  17. #include "GenericWnd.h"
  18. #include "..\lglib\Remote\LgRemoteInterface.h"
  19. #define DESCRIPTION_SIZE 200
  20. #ifndef PALETTE_ENTRIES
  21. #define PALETTE_ENTRIES 256
  22. #endif
  23. #ifndef WIDTHBYTES
  24. #define WIDTHBYTES(bits) (((bits + 31) >> 5) << 2)
  25. #endif
  26. #include "Profile.h"
  27. class CApplication;
  28. class CVideoWnd :
  29. public CGenericWnd,
  30. public CLgRemoteInterfaceVideo
  31. {
  32. public:
  33. CVideoWnd();
  34. virtual ~CVideoWnd();
  35. public:
  36. virtual BOOL Create( BOOL bStretchVideo, HWND hParentWnd, INT x, INT y, INT cx, INT cy, CProfile *pProfile );
  37. virtual HBITMAP GetSnapshot() = 0;
  38. public:
  39. virtual HBITMAP StoreImage( HANDLE, LPCTSTR, INT nWidth, INT nHeight, INT nBitCount ) = 0;
  40. virtual HBITMAP StoreImage( LPBYTE, LPCTSTR, INT nWidth, INT nHeight, INT nBitCount ) = 0;
  41. protected:
  42. virtual void DrawText8( LPBITMAPINFO, LPBYTE, LPCTSTR );
  43. virtual void DrawText24( LPBITMAPINFO, LPBYTE, LPCTSTR );
  44. protected:
  45. BOOL m_bStretchVideo;
  46. protected:
  47. CProfile *m_pProfile;
  48. private:
  49. static BYTE s_pNumbers[];
  50. };
  51. #endif