//---------------------------------------------------------------------------- // Laser Guard Ltd. // Copyright © 2000-2002. All Rights Reserved. // Version 1.0 01/01/2000 // Last modification: 08/10/2003 // PROJECT: // SUBSYSTEM: // FILE: VideoWnd.h // AUTHOR: Sergey Chizhevskiy // OVERVIEW // ~~~~~~~~ // Header file of VideoWnd.h //---------------------------------------------------------------------------- #if !defined(AFX_VIDEOWND_H__DF4980BB_1C5B_47C4_8FE2_6A55484CBF15__INCLUDED_) #define AFX_VIDEOWND_H__DF4980BB_1C5B_47C4_8FE2_6A55484CBF15__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // VideoWnd.h : header file // #include "..\lglib\video\DirectShowVideo.h" #include "..\lglib\directdraw\LgDirectDrawVideo.h" #define WM_UPDATE_BITMAP (WM_USER+876) #define WM_VIDEO_SAMPLE (WM_USER+877) class CVideoWnd : public CWnd, public CDirectShowVideo, public CLgDirectDrawVideo { // Construction public: CVideoWnd(); // Attributes public: // Operations public: BOOL Create( CWnd *pParentWnd, int x, int y, int nWidth, int nHeight ); public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CVideoWnd) public: virtual BOOL DestroyWindow(); protected: //}}AFX_VIRTUAL // Implementation public: virtual ~CVideoWnd(); // Generated message map functions protected: //{{AFX_MSG(CVideoWnd) afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg void OnPaint(); //}}AFX_MSG LRESULT OnVideoSample( WPARAM, LPARAM ); DECLARE_MESSAGE_MAP() protected: void OnDraw( CDC *pDC ); private: virtual void OnVideoSample( double SampleTime ); private: void SetCross(); virtual CLgImageDIB& GetDirectDrawVideoDIB() { return GetDirectShowDIB(); } }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_VIDEOWND_H__DF4980BB_1C5B_47C4_8FE2_6A55484CBF15__INCLUDED_)