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.

67 lines
1.6 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: PropertyLGSWnd.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of PropertyLGSWnd.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __PROPERTY__LGS__WND__H__INCLUDED__
  15. #define __PROPERTY__LGS__WND__H__INCLUDED__
  16. #include "..\DLIB\SensorLGS.h"
  17. #if _MSC_VER > 1000
  18. #pragma once
  19. #endif
  20. class CPropertyLGSWnd : public CWnd
  21. {
  22. // Construction
  23. public:
  24. CPropertyLGSWnd();
  25. // Attributes
  26. public:
  27. // Operations
  28. public:
  29. // Overrides
  30. // ClassWizard generated virtual function overrides
  31. //{{AFX_VIRTUAL(CPropertyLGSWnd)
  32. //}}AFX_VIRTUAL
  33. // Implementation
  34. public:
  35. BOOL GetFilter( double &x, double &y, double &r );
  36. void UseVisibleZone( BOOL bUse );
  37. BOOL Create( CWnd *pParentWnd, int x, int y, int cx, int cy );
  38. void SetSensor( CSensorLGS *pSensor );
  39. virtual ~CPropertyLGSWnd();
  40. // Generated message map functions
  41. protected:
  42. //{{AFX_MSG(CPropertyLGSWnd)
  43. afx_msg void OnPaint();
  44. afx_msg void OnTimer(UINT nIDEvent);
  45. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  46. //}}AFX_MSG
  47. DECLARE_MESSAGE_MAP()
  48. private:
  49. void CreateRgn( CRect &rect, CPoint &point );
  50. void Draw( CDC *pDC );
  51. BOOL m_bInverse;
  52. CSensorLGS *m_pSensor;
  53. CPoint m_vPoint;
  54. CRgn m_vRgn;
  55. CLgMemoryDC m_MemDC;
  56. BOOL m_bUseVZ;
  57. };
  58. #endif