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.

63 lines
1.3 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: GraphWnd.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of GraphWnd.h
  13. //----------------------------------------------------------------------------
  14. #pragma once
  15. #include "..\..\LgLib\LgAux.h"
  16. #include "..\..\LgLib\LgArray.h"
  17. // CGraphWnd
  18. class CGraphWnd : public CWnd
  19. {
  20. DECLARE_DYNAMIC(CGraphWnd)
  21. public:
  22. CGraphWnd();
  23. virtual ~CGraphWnd();
  24. public:
  25. struct CGraphData : public CLgArray<CLgDPoint>
  26. {
  27. COLORREF rgbColor;
  28. BOOL bVisible;
  29. };
  30. typedef CLgArray<CGraphData> CGraphDataArray;
  31. public:
  32. void SetField( CLgDPoint min, CLgDPoint max, CLgDPoint axis, CLgDSize step );
  33. public:
  34. CGraphDataArray& GetDataArray() { return m_GraphDataArray; }
  35. protected:
  36. DECLARE_MESSAGE_MAP()
  37. public:
  38. afx_msg void OnPaint();
  39. protected:
  40. void OnDraw( CDC *pDC );
  41. public:
  42. BOOL Create( CWnd *pParentWnd, LPRECT pRect );
  43. private:
  44. CLgDPoint m_Min;
  45. CLgDPoint m_Max;
  46. CLgDPoint m_Axis;
  47. CLgDSize m_Step;
  48. CGraphDataArray m_GraphDataArray;
  49. };