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.

51 lines
1.2 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: LgDirectDrawVideo.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of LgDirectDrawVideo.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __LG__DIRECT__DRAW__VIDEO__H__INCLUDED__
  15. #define __LG__DIRECT__DRAW__VIDEO__H__INCLUDED__
  16. #include "LgDirectDrawDisplay.h"
  17. class CLgDirectDrawVideo
  18. {
  19. public:
  20. CLgDirectDrawVideo();
  21. virtual ~CLgDirectDrawVideo();
  22. protected:
  23. BOOL OnSize( HWND hWnd );
  24. BOOL OnPaint( BOOL bScale );
  25. void OnDestroy();
  26. protected:
  27. virtual CLgImageDIB& GetDirectDrawVideoDIB() = 0;
  28. protected:
  29. void SetDirectDrawVideoText( LPCTSTR pText, HFONT hFont, COLORREF cColor );
  30. private:
  31. void UpdateDirectDrawVideoDIB();
  32. HRESULT RestoreSurfaces();
  33. HRESULT DisplayFrame( BOOL bStretch );
  34. private:
  35. CLgDirectDrawDisplay m_Display;
  36. CLgDirectDrawSurface *m_pSurface;
  37. private:
  38. TCHAR m_pText[MAX_PATH];
  39. HFONT m_hFont;
  40. COLORREF m_cColor;
  41. };
  42. #endif