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.

90 lines
2.7 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: MapZoomDlg.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of MapZoomDlg.h
  13. //----------------------------------------------------------------------------
  14. #if !defined(AFX_MAPZOOMDLG_H__C95CC681_72B3_11D4_A1F0_0010B55CB330__INCLUDED_)
  15. #define AFX_MAPZOOMDLG_H__C95CC681_72B3_11D4_A1F0_0010B55CB330__INCLUDED_
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif // _MSC_VER > 1000
  19. // MapZoomDlg.h : header file
  20. //
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CMapZoomDlg dialog
  23. #include "..\DLIB\MapData.h"
  24. #include "MapWnd.h"
  25. #include "..\DLIB\SensorArray.h" // Added by ClassView
  26. class CMapZoomDlg : public CDialog
  27. {
  28. // Construction
  29. public:
  30. void SetRunningMode( int nMode );
  31. void SetCurrentSensor( CSensor *pSensor );
  32. void SetSensorArray( CSensorArray* pSensorArray );
  33. void SetMapScale( double scale );
  34. double GetMapScale();
  35. LRESULT OnWMEnableSensor(WPARAM wParam, LPARAM lParam);
  36. void SetMapCenterAndScale( SDPOINT& point, double scale );
  37. void SetMapData( CMapData* pMapData );
  38. CMapZoomDlg(CWnd* pParent = NULL); // standard constructor
  39. // Dialog Data
  40. //{{AFX_DATA(CMapZoomDlg)
  41. enum { IDD = IDD_MAP_ZOOM_DLG };
  42. CButton m_ButtonNext;
  43. CButton m_ButtonPrev;
  44. //}}AFX_DATA
  45. // Overrides
  46. // ClassWizard generated virtual function overrides
  47. //{{AFX_VIRTUAL(CMapZoomDlg)
  48. public:
  49. virtual BOOL DestroyWindow();
  50. protected:
  51. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  52. //}}AFX_VIRTUAL
  53. // Implementation
  54. protected:
  55. // Generated message map functions
  56. //{{AFX_MSG(CMapZoomDlg)
  57. afx_msg void OnMoving(UINT fwSide, LPRECT pRect);
  58. virtual BOOL OnInitDialog();
  59. afx_msg void OnSize(UINT nType, int cx, int cy);
  60. afx_msg void OnSizing(UINT fwSide, LPRECT pRect);
  61. afx_msg void OnTimer(UINT nIDEvent);
  62. afx_msg void OnButtonPrev();
  63. afx_msg void OnButtonNext();
  64. //}}AFX_MSG
  65. DECLARE_MESSAGE_MAP()
  66. private:
  67. virtual void OnOK() {}
  68. virtual void OnCancel() {}
  69. private:
  70. int m_nRunningMode;
  71. CSensorArray *m_pSensorArray;
  72. CSensor *m_pCurrentSensor;
  73. LRESULT OnWMSensorCurrent( WPARAM wParam, LPARAM lParam );
  74. LRESULT OnWMSensorUpdate( WPARAM wParam, LPARAM lParam );
  75. CMapWnd* m_pMapSite;
  76. };
  77. //{{AFX_INSERT_LOCATION}}
  78. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  79. #endif // !defined(AFX_MAPZOOMDLG_H__C95CC681_72B3_11D4_A1F0_0010B55CB330__INCLUDED_)