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.
89 lines
2.4 KiB
89 lines
2.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
|
|
//----------------------------------------------------------------------------
|
|
#if !defined(AFX_EVENTWND_H__5B347902_8343_11D4_A1F0_0010B55CB330__INCLUDED_)
|
|
#define AFX_EVENTWND_H__5B347902_8343_11D4_A1F0_0010B55CB330__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// EventWnd.h : header file
|
|
//
|
|
#include "..\DLIB\SensorArray.h" // Added by ClassView
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CEventWnd window
|
|
|
|
class CEventWnd : public CWnd
|
|
{
|
|
// Construction
|
|
public:
|
|
CEventWnd();
|
|
|
|
// Attributes
|
|
public:
|
|
|
|
// Operations
|
|
public:
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CEventWnd)
|
|
public:
|
|
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
|
|
protected:
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
public:
|
|
void RemoveAll();
|
|
void SetSensorArray( CSensorArray *pSensorArray );
|
|
BOOL SetActive( int nActive );
|
|
void AddHead( EVENT& event );
|
|
void AddTail( EVENT& event );
|
|
EVENT* GetAt( int nIndex );
|
|
// int GetMaxLines( ) { return m_nCountEvents; }
|
|
int GetCountLines();
|
|
int GetMaxLines();
|
|
virtual ~CEventWnd();
|
|
|
|
// Generated message map functions
|
|
protected:
|
|
//{{AFX_MSG(CEventWnd)
|
|
afx_msg void OnSize(UINT nType, int cx, int cy);
|
|
afx_msg void OnPaint();
|
|
afx_msg void OnTimer(UINT nIDEvent);
|
|
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
|
|
afx_msg UINT OnGetDlgCode();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
private:
|
|
CSensorArray *m_pSensorArray;
|
|
|
|
public:
|
|
void OnChangeSettings();
|
|
|
|
private:
|
|
void OnDraw( CDC *pDC );
|
|
CArray<EVENT,EVENT> m_EventArray;
|
|
// CMemoryDC m_MemoryDC;
|
|
CFont m_Font;
|
|
INT m_nActive;
|
|
};
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_EVENTWND_H__5B347902_8343_11D4_A1F0_0010B55CB330__INCLUDED_)
|