//---------------------------------------------------------------------------- // Laser Guard Ltd. // Copyright © 2000-2002. All Rights Reserved. // Version 1.0 01/01/2000 // Last modification: 08/10/2003 // PROJECT: // SUBSYSTEM: // FILE: LgDirectDrawVideo.h // AUTHOR: Sergey Chizhevskiy // OVERVIEW // ~~~~~~~~ // Header file of LgDirectDrawVideo.h //---------------------------------------------------------------------------- #ifndef __LG__DIRECT__DRAW__VIDEO__H__INCLUDED__ #define __LG__DIRECT__DRAW__VIDEO__H__INCLUDED__ #include "LgDirectDrawDisplay.h" class CLgDirectDrawVideo { public: CLgDirectDrawVideo(); virtual ~CLgDirectDrawVideo(); protected: BOOL OnSize( HWND hWnd ); BOOL OnPaint( BOOL bScale ); void OnDestroy(); protected: virtual CLgImageDIB& GetDirectDrawVideoDIB() = 0; protected: void SetDirectDrawVideoText( LPCTSTR pText, HFONT hFont, COLORREF cColor ); private: void UpdateDirectDrawVideoDIB(); HRESULT RestoreSurfaces(); HRESULT DisplayFrame( BOOL bStretch ); private: CLgDirectDrawDisplay m_Display; CLgDirectDrawSurface *m_pSurface; private: TCHAR m_pText[MAX_PATH]; HFONT m_hFont; COLORREF m_cColor; }; #endif