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.

70 lines
2.1 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: EnableDTRDlg.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of EnableDTRDlg.h
  13. //----------------------------------------------------------------------------
  14. #if !defined(AFX_ENABLEDTRDLG_H__058341C1_8989_11D4_A1F0_0010B55CB330__INCLUDED_)
  15. #define AFX_ENABLEDTRDLG_H__058341C1_8989_11D4_A1F0_0010B55CB330__INCLUDED_
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif // _MSC_VER > 1000
  19. // EnableDTRDlg.h : header file
  20. //
  21. #include "SensorArray.h"
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CEnableDTRDlg dialog
  24. class CEnableDTRDlg : public CDialog
  25. {
  26. // Construction
  27. public:
  28. CEnableDTRDlg(CWnd* pParent = NULL); // standard constructor
  29. void SetParam( CSensorArray *pSensorArray, int nZone, int nSensor, int nBit );
  30. // Dialog Data
  31. //{{AFX_DATA(CEnableDTRDlg)
  32. enum { IDD = IDD_ENABLE_DTR_DLG };
  33. // NOTE: the ClassWizard will add data members here
  34. //}}AFX_DATA
  35. // Overrides
  36. // ClassWizard generated virtual function overrides
  37. //{{AFX_VIRTUAL(CEnableDTRDlg)
  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(CEnableDTRDlg)
  45. virtual BOOL OnInitDialog();
  46. afx_msg void OnSelchangeEnableDtrComboZone();
  47. afx_msg void OnSelchangeEnableDtrComboSensor();
  48. //}}AFX_MSG
  49. DECLARE_MESSAGE_MAP()
  50. private:
  51. void SetZone(CSensorArray *pSensorArray, int nZone );
  52. void SetSensor(CSensorArray *pSensorArray, int nSensor );
  53. void SetBit(CSensorArray *pSensorArray, int nSensor, int nBit );
  54. CSensorArray *m_pSensorArray;
  55. int m_nZone;
  56. int m_nSensor;
  57. int m_nBit;
  58. };
  59. //{{AFX_INSERT_LOCATION}}
  60. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  61. #endif // !defined(AFX_ENABLEDTRDLG_H__058341C1_8989_11D4_A1F0_0010B55CB330__INCLUDED_)