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.
|
|
//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright � 2000-2002. All Rights Reserved.
// Version 1.0 24/03/2000
// Last modification: 08/10/2003
// Project Intruder Position Indicator
// SUBSYSTEM: Video Camera Showing Window
// FILE: VideoForWindowsWnd.h
// AUTHOR: Chizhevskiy Sergey
// OVERVIEW
// ~~~~~~~~
// Header file for class CVideoForWindowsWnd
//----------------------------------------------------------------------------
#ifndef __VIDEO__FOR__WINDOWS__WND__H__INCLUDED__
#define __VIDEO__FOR__WINDOWS__WND__H__INCLUDED__
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "VideoWnd.h"
class CVideoForWindowsWnd : public CVideoWnd {public: CVideoForWindowsWnd(); CVideoForWindowsWnd( HWND hParentWnd, LPPOINT pPoint = NULL, LPSIZE pSize = NULL ); virtual ~CVideoForWindowsWnd();
public: virtual BOOL ShowWindow( int nShow ); virtual BOOL Create(HWND hParentWnd, LPPOINT pPoint = NULL, LPSIZE pSize = NULL); virtual void UpdatePositions(); virtual HWND GetSafeHwnd();
protected: virtual HBITMAP StoreImage( HANDLE, LPCTSTR, INT nBitCount ); virtual HBITMAP GetSnapshot();
protected: HWND m_hVFWWnd; BOOL m_IsInitiated;};
inline HWND CVideoForWindowsWnd::GetSafeHwnd(){ if(m_IsInitiated) return m_hVFWWnd;
return NULL;}
inline void CVideoForWindowsWnd::UpdatePositions(){ if(m_IsInitiated) ::InvalidateRect(m_hVFWWnd, NULL, FALSE);}
#endif
|