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.

73 lines
2.0 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: PropertySensorWnd.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of PropertySensorWnd.h
  13. //----------------------------------------------------------------------------
  14. #if !defined(AFX_PROPERTYSENSORWND_H__38033112_2230_4B1B_B787_06051E1A5D39__INCLUDED_)
  15. #define AFX_PROPERTYSENSORWND_H__38033112_2230_4B1B_B787_06051E1A5D39__INCLUDED_
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif // _MSC_VER > 1000
  19. // PropertySensorWnd.h : header file
  20. //
  21. #include "..\DLIB\Sensor.h"
  22. #include "..\..\LgLib\MFC\MemoryDC.h"
  23. class CPropertySensorWnd : public CWnd
  24. {
  25. // Construction
  26. public:
  27. CPropertySensorWnd();
  28. virtual ~CPropertySensorWnd();
  29. // Attributes
  30. public:
  31. // Operations
  32. public:
  33. // Overrides
  34. // ClassWizard generated virtual function overrides
  35. //{{AFX_VIRTUAL(CPropertySensorWnd)
  36. //}}AFX_VIRTUAL
  37. // Implementation
  38. public:
  39. virtual BOOL Create( CWnd *pParentWnd, int x, int y, int cx, int cy );
  40. virtual void UpdateInfo( BOOL bOddUpdate );
  41. virtual void SetSensor( CSensor *pSensor );
  42. virtual void OnUpdateSensorProperty();
  43. virtual void FitRect( CRect ParentRect, CRect &ChildRect );
  44. // Generated message map functions
  45. protected:
  46. virtual void OnDraw(CDC *pDC);
  47. //{{AFX_MSG(CPropertySensorWnd)
  48. afx_msg void OnPaint();
  49. afx_msg void OnSize(UINT nType, int cx, int cy);
  50. //}}AFX_MSG
  51. DECLARE_MESSAGE_MAP()
  52. protected:
  53. BOOL m_bOddUpdate;
  54. CSensor *m_pSensor;
  55. CLgMemoryDC m_MemoryDC;
  56. OSVERSIONINFO m_OSVersionInfo;
  57. };
  58. /////////////////////////////////////////////////////////////////////////////
  59. //{{AFX_INSERT_LOCATION}}
  60. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  61. #endif // !defined(AFX_PROPERTYSENSORWND_H__38033112_2230_4B1B_B787_06051E1A5D39__INCLUDED_)