#if !defined(AFX_DISPTDRECSPLINESGRAPVIEW_H__22A26E91_4426_4499_B9BC_05460D7FBE02__INCLUDED_) #define AFX_DISPTDRECSPLINESGRAPVIEW_H__22A26E91_4426_4499_B9BC_05460D7FBE02__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // disptdrecsplinesgrapview.h : header file // ///////////////////////////////////////////////////////////////////////////// // CDispTdRecSplinesGrapView view class CDispTdRecSplinesGrapView : public CView { protected: CDispTdRecSplinesGrapView(); // protected constructor used by dynamic creation DECLARE_DYNCREATE(CDispTdRecSplinesGrapView) // Attributes public: float m_fMaxAbsV; CStringArray m_saOrgData; // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CDispTdRecSplinesGrapView) public: virtual void OnInitialUpdate(); protected: virtual void OnDraw(CDC* pDC); // overridden to draw this view //}}AFX_VIRTUAL // Implementation protected: virtual ~CDispTdRecSplinesGrapView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif // Generated message map functions protected: //{{AFX_MSG(CDispTdRecSplinesGrapView) // NOTE - the ClassWizard will add and remove member functions here. afx_msg int OnMouseActivate(CWnd* pDesktopWnd, UINT nHitTest, UINT message); //}}AFX_MSG DECLARE_MESSAGE_MAP() private: void DrawLine(CDC* const pDC); void DrawEX(CDC* const pDC); void DrawLY(CDC* const pDC); int CoordinateMapping(float fValue, float fMappingRange, int MappingFactor); void CalculateMaxScale(); void CalculatePointCoo(); void ClearPoint(); int m_iCXOffset; int m_iCYOffset; int m_iMaxXScale; int m_iMaxYScale; POINT* m_pPoint; int m_iPtNum; }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_DISPTDRECSPLINESGRAPVIEW_H__22A26E91_4426_4499_B9BC_05460D7FBE02__INCLUDED_)