//---------------------------------------------------------------------------- // Laser Guard Ltd. // Copyright © 2000-2002. All Rights Reserved. // Version 1.0 01/01/2000 // Last modification: 08/10/2003 // PROJECT: // SUBSYSTEM: // FILE: GraphWnd.h // AUTHOR: Sergey Chizhevskiy // OVERVIEW // ~~~~~~~~ // Header file of GraphWnd.h //---------------------------------------------------------------------------- #pragma once #include "..\..\LgLib\LgAux.h" #include "..\..\LgLib\LgArray.h" // CGraphWnd class CGraphWnd : public CWnd { DECLARE_DYNAMIC(CGraphWnd) public: CGraphWnd(); virtual ~CGraphWnd(); public: struct CGraphData : public CLgArray { COLORREF rgbColor; BOOL bVisible; }; typedef CLgArray CGraphDataArray; public: void SetField( CLgDPoint min, CLgDPoint max, CLgDPoint axis, CLgDSize step ); public: CGraphDataArray& GetDataArray() { return m_GraphDataArray; } protected: DECLARE_MESSAGE_MAP() public: afx_msg void OnPaint(); protected: void OnDraw( CDC *pDC ); public: BOOL Create( CWnd *pParentWnd, LPRECT pRect ); private: CLgDPoint m_Min; CLgDPoint m_Max; CLgDPoint m_Axis; CLgDSize m_Step; CGraphDataArray m_GraphDataArray; };