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.

89 lines
2.4 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: EventWnd.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of EventWnd.h
  13. //----------------------------------------------------------------------------
  14. #if !defined(AFX_EVENTWND_H__5B347902_8343_11D4_A1F0_0010B55CB330__INCLUDED_)
  15. #define AFX_EVENTWND_H__5B347902_8343_11D4_A1F0_0010B55CB330__INCLUDED_
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif // _MSC_VER > 1000
  19. // EventWnd.h : header file
  20. //
  21. #include "..\DLIB\SensorArray.h" // Added by ClassView
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CEventWnd window
  24. class CEventWnd : public CWnd
  25. {
  26. // Construction
  27. public:
  28. CEventWnd();
  29. // Attributes
  30. public:
  31. // Operations
  32. public:
  33. // Overrides
  34. // ClassWizard generated virtual function overrides
  35. //{{AFX_VIRTUAL(CEventWnd)
  36. public:
  37. virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
  38. protected:
  39. //}}AFX_VIRTUAL
  40. // Implementation
  41. public:
  42. void RemoveAll();
  43. void SetSensorArray( CSensorArray *pSensorArray );
  44. BOOL SetActive( int nActive );
  45. void AddHead( EVENT& event );
  46. void AddTail( EVENT& event );
  47. EVENT* GetAt( int nIndex );
  48. // int GetMaxLines( ) { return m_nCountEvents; }
  49. int GetCountLines();
  50. int GetMaxLines();
  51. virtual ~CEventWnd();
  52. // Generated message map functions
  53. protected:
  54. //{{AFX_MSG(CEventWnd)
  55. afx_msg void OnSize(UINT nType, int cx, int cy);
  56. afx_msg void OnPaint();
  57. afx_msg void OnTimer(UINT nIDEvent);
  58. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  59. afx_msg UINT OnGetDlgCode();
  60. //}}AFX_MSG
  61. DECLARE_MESSAGE_MAP()
  62. private:
  63. CSensorArray *m_pSensorArray;
  64. public:
  65. void OnChangeSettings();
  66. private:
  67. void OnDraw( CDC *pDC );
  68. CArray<EVENT,EVENT> m_EventArray;
  69. // CMemoryDC m_MemoryDC;
  70. CFont m_Font;
  71. INT m_nActive;
  72. };
  73. /////////////////////////////////////////////////////////////////////////////
  74. //{{AFX_INSERT_LOCATION}}
  75. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  76. #endif // !defined(AFX_EVENTWND_H__5B347902_8343_11D4_A1F0_0010B55CB330__INCLUDED_)