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.
66 lines
1.4 KiB
66 lines
1.4 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: EventWnd.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of EventWnd.h
|
|
//----------------------------------------------------------------------------
|
|
#ifndef __EVENT__WND__H__INCLUDED__
|
|
#define __EVENT__WND__H__INCLUDED__
|
|
|
|
#include "EventQueue.h"
|
|
#include "Profile.h"
|
|
|
|
class CEventWnd
|
|
{
|
|
public:
|
|
CEventWnd();
|
|
virtual ~CEventWnd();
|
|
|
|
public:
|
|
BOOL Create( BOOL bDebug, HWND hParent, INT x, INT y, INT cx, INT cy, CProfile *pProfile );
|
|
void Destroy();
|
|
|
|
public:
|
|
void AddTarget(TARGET_DESCRIPTION& td);
|
|
void AddText(LPCTSTR pText);
|
|
void Reset();
|
|
void SetDebugMode(BOOL fDebug) { m_bDebug = fDebug; }
|
|
|
|
private:
|
|
LRESULT OnDestroy( WPARAM, LPARAM );
|
|
LRESULT OnPaint( WPARAM, LPARAM );
|
|
LRESULT OnSize( WPARAM, LPARAM );
|
|
|
|
private:
|
|
void OnDraw( HDC );
|
|
|
|
private:
|
|
static LRESULT CALLBACK WindowProc_( HWND, UINT, WPARAM, LPARAM );
|
|
virtual LRESULT WindowProc( UINT, WPARAM, LPARAM );
|
|
|
|
private:
|
|
HWND m_hWnd;
|
|
|
|
private:
|
|
HDC m_hMemDC;
|
|
HBITMAP m_hMemBitmap;
|
|
HFONT m_hMemFont;
|
|
|
|
private:
|
|
BOOL m_bEnable;
|
|
BOOL m_bDebug;
|
|
CProfile *m_pProfile;
|
|
|
|
private:
|
|
HDC m_hIconsDC;
|
|
HBITMAP m_hIconsBitmap;
|
|
};
|
|
|
|
#endif
|