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.

83 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: 13/04/2001
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: SensorPropertyDlg.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of SensorPropertyDlg.h
  13. //----------------------------------------------------------------------------
  14. #if !defined(AFX_SENSORPROPERTYDLG_H__DBC974E1_7447_11D4_A1F0_0010B55CB330__INCLUDED_)
  15. #define AFX_SENSORPROPERTYDLG_H__DBC974E1_7447_11D4_A1F0_0010B55CB330__INCLUDED_
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif // _MSC_VER > 1000
  19. // SensorPropertyDlg.h : header file
  20. //
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CSensorPropertyDlg dialog
  23. #include "Sensor.h"
  24. class CSensorPropertyDlg : public CDialog
  25. {
  26. // Construction
  27. public:
  28. void UpdateSensor();
  29. void SetSensor( CSensor *pSensor );
  30. CSensorPropertyDlg(CWnd* pParent = NULL); // standard constructor
  31. // Dialog Data
  32. //{{AFX_DATA(CSensorPropertyDlg)
  33. enum { IDD = IDD_SENSOR_PROPERTY_DLG };
  34. CStatic m_StaticImage;
  35. CButton m_ButtonSensorEnable;
  36. int m_iSensorAddress;
  37. CString m_strSensorName;
  38. CString m_strSensorState;
  39. CString m_strSensorType;
  40. //}}AFX_DATA
  41. // Overrides
  42. // ClassWizard generated virtual function overrides
  43. //{{AFX_VIRTUAL(CSensorPropertyDlg)
  44. protected:
  45. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  46. //}}AFX_VIRTUAL
  47. // Implementation
  48. protected:
  49. // Generated message map functions
  50. //{{AFX_MSG(CSensorPropertyDlg)
  51. afx_msg void OnMoving(UINT fwSide, LPRECT pRect);
  52. afx_msg void OnButtonSensorEnable();
  53. afx_msg void OnSizing(UINT fwSide, LPRECT pRect);
  54. afx_msg void OnTimer(UINT nIDEvent);
  55. virtual BOOL OnInitDialog();
  56. //}}AFX_MSG
  57. DECLARE_MESSAGE_MAP()
  58. private:
  59. BOOL m_bInverse;
  60. BOOL m_bUpdate;
  61. CSensor * m_pSensor;
  62. private:
  63. virtual void OnOK() {}
  64. virtual void OnCancel() {}
  65. private:
  66. CBitmap* m_pOverlayBitmapOld;
  67. CBitmap m_OverlayBitmap;
  68. CDC m_OverlayDC;
  69. CDC m_OverlayDCBackground;
  70. };
  71. //{{AFX_INSERT_LOCATION}}
  72. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  73. #endif // !defined(AFX_SENSORPROPERTYDLG_H__DBC974E1_7447_11D4_A1F0_0010B55CB330__INCLUDED_)