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.

62 lines
1.5 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: ZoomAreaWnd.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of ZoomAreaWnd.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __ZOOM__AREA__WND__H__INCLUDED__
  15. #define __ZOOM__AREA__WND__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #include "..\DLIB\SensorArray.h"
  20. #include "AreaSensorWnd.h"
  21. class CWholeAreaWnd;
  22. class CZoomAreaWnd : public CAreaSensorWnd
  23. {
  24. public:
  25. CZoomAreaWnd();
  26. virtual ~CZoomAreaWnd();
  27. public:
  28. //{{AFX_VIRTUAL(CZoomAreaWnd)
  29. //}}AFX_VIRTUAL
  30. public:
  31. virtual BOOL SetActiveSensor( CSensor *pActiveSensor );
  32. public:
  33. CLgDRect GetVisibleArea();
  34. void SetWholeArea( CWholeAreaWnd *pWholeAreaWnd ) { m_pWholeAreaWnd = pWholeAreaWnd; }
  35. protected:
  36. //{{AFX_MSG(CZoomAreaWnd)
  37. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  38. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  39. afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
  40. afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  41. //}}AFX_MSG
  42. DECLARE_MESSAGE_MAP()
  43. protected:
  44. virtual void OnChangeViewParams();
  45. private:
  46. CWholeAreaWnd *m_pWholeAreaWnd;
  47. BOOL m_bMousePressed;
  48. CPoint m_pMousePress;
  49. DWORD m_dwPressTime;
  50. };
  51. //{{AFX_INSERT_LOCATION}}
  52. #endif