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.

97 lines
2.8 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: 13/04/2001
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: EventsDlg.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of EventsDlg.h
  13. //----------------------------------------------------------------------------
  14. #if !defined(AFX_EVENTSDLG_H__9E405D40_7759_11D4_A1FB_00508B9DC668__INCLUDED_)
  15. #define AFX_EVENTSDLG_H__9E405D40_7759_11D4_A1FB_00508B9DC668__INCLUDED_
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif // _MSC_VER > 1000
  19. // EventsDlg.h : header file
  20. //
  21. #include "EventQueue.h"
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CEventsDlg dialog
  24. class CEventsDlg : public CDialog
  25. {
  26. // Construction
  27. public:
  28. void SetEventQueue( CEventQueue* pEventQueue );
  29. void SetSensorArray(CSensorArray *pSensorArray);
  30. CEventsDlg(CWnd* pParent = NULL); // standard constructor
  31. // Dialog Data
  32. //{{AFX_DATA(CEventsDlg)
  33. enum { IDD = IDD_EVENTS_DLG };
  34. //}}AFX_DATA
  35. // Overrides
  36. // ClassWizard generated virtual function overrides
  37. //{{AFX_VIRTUAL(CEventsDlg)
  38. protected:
  39. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  40. //}}AFX_VIRTUAL
  41. // Implementation
  42. protected:
  43. // Generated message map functions
  44. //{{AFX_MSG(CEventsDlg)
  45. afx_msg void OnMoving(UINT fwSide, LPRECT pRect);
  46. afx_msg void OnCheckPrint();
  47. virtual BOOL OnInitDialog();
  48. afx_msg void OnDestroy();
  49. afx_msg void OnSize(UINT nType, int cx, int cy);
  50. afx_msg void OnSizing(UINT fwSide, LPRECT pRect);
  51. afx_msg void OnTimer(UINT nIDEvent);
  52. //}}AFX_MSG
  53. DECLARE_MESSAGE_MAP()
  54. private:
  55. friend static LRESULT CALLBACK WndProcEvent( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam )
  56. {
  57. CEventsDlg *self = (CEventsDlg*)::GetWindowLong( hWnd, GWL_USERDATA );
  58. if( self ) return self->WndProcEvent( hWnd, uMsg, wParam, lParam );
  59. return ::DefWindowProc( hWnd, uMsg, wParam, lParam );
  60. }
  61. LRESULT WndProcEvent( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam );
  62. LRESULT OnWMSensorEvent(WPARAM wParam, LPARAM lParam);
  63. LRESULT OnWMSocketEvent(WPARAM wParam, LPARAM lParam);
  64. private:
  65. virtual void OnOK() {}
  66. virtual void OnCancel() {}
  67. private:
  68. CEventQueue* m_pEventQueue;
  69. void PrintLine( CString& line );
  70. CDC m_PrintDC;
  71. BOOL m_bPrint;
  72. INT m_nPrintCount;
  73. int m_nFontHeight;
  74. CFont *m_pFont;
  75. void PrepareOverlay();
  76. CDC m_OverlayDC;
  77. CBitmap m_OverlayBitmap;
  78. CBitmap* m_pOverlayBitmapOld;
  79. CSensorArray *m_pSensorArray;
  80. BOOL m_bChanged;
  81. };
  82. //{{AFX_INSERT_LOCATION}}
  83. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  84. #endif // !defined(AFX_EVENTSDLG_H__9E405D40_7759_11D4_A1FB_00508B9DC668__INCLUDED_)