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.
64 lines
1.6 KiB
64 lines
1.6 KiB
//----------------------------------------------------------------------------
|
|
// 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: VideoStaticWnd.h
|
|
// AUTHOR: Chizhevskiy Sergey
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file for class CVideoStaticWnd
|
|
//----------------------------------------------------------------------------
|
|
|
|
|
|
#ifndef __VIDEO__STATIC__WND__H__INCLUDED__
|
|
#define __VIDEO__STATIC__WND__H__INCLUDED__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#include "VideoForWindowsWnd.h"
|
|
#include "VideoDirectShowWnd.h"
|
|
#include "VideoFrameGrabberWnd.h"
|
|
|
|
//#define VSW_BASE_CLASS CVideoForWindowsWnd
|
|
#define VSW_BASE_CLASS CVideoDirectShowWnd
|
|
//#define VSW_BASE_CLASS CVideoFrameGrabberWnd
|
|
|
|
class CVideoStaticWnd :
|
|
public VSW_BASE_CLASS
|
|
{
|
|
public:
|
|
CVideoStaticWnd( CProfile *pProfile, HWND hParentWnd, LPPOINT pPoint, LPSIZE pSize );
|
|
CVideoStaticWnd();
|
|
virtual ~CVideoStaticWnd();
|
|
|
|
public:
|
|
void Enable( BOOL bEnable );
|
|
virtual BOOL Create(HWND hParentWnd, LPPOINT pPoint, LPSIZE pSize );
|
|
virtual HWND GetSafeHwnd() { return m_hWnd; }
|
|
|
|
void Snapshot();
|
|
|
|
private:
|
|
LRESULT OnSize( WPARAM, LPARAM );
|
|
void OnDraw( HDC );
|
|
|
|
private:
|
|
LRESULT WndProc(HWND, UINT, WPARAM, LPARAM);
|
|
static LRESULT WndProc_( HWND, UINT, WPARAM, LPARAM );
|
|
|
|
LRESULT OnMove(WPARAM, LPARAM);
|
|
LRESULT OnPaint(WPARAM, LPARAM);
|
|
|
|
private:
|
|
HWND m_hWnd;
|
|
HDC m_hMemDC;
|
|
HBITMAP m_hMemBitmap;
|
|
BOOL m_bEnabled;
|
|
};
|
|
|
|
#endif
|