#if !defined(AFX_DISPGRAP2DRSPTDVIEW_H__944250E9_131F_4B13_9704_85E4BA9DE2BB__INCLUDED_) #define AFX_DISPGRAP2DRSPTDVIEW_H__944250E9_131F_4B13_9704_85E4BA9DE2BB__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // dispgrap2drsptdview.h : header file // class CRsp2DTd; class CTdChannel; ///////////////////////////////////////////////////////////////////////////// // CDispGrap2DRSPTdView view class CDispGrap2DRSPTdView : public CView { protected: CDispGrap2DRSPTdView(); // protected constructor used by dynamic creation DECLARE_DYNCREATE(CDispGrap2DRSPTdView) // Attributes public: CTdChannel* m_pTdChannel; CRect m_lRect; int m_iSmWidth;//根据电极个数换算出来的测点的矩形区域在X轴范围内的宽度 int m_iSmHeight;//根据最大层数换算出来的测点的矩形区域在Y轴范围的高度 int m_iStartPole;//起始电极 int m_iEndPole;//结束点击位置 // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CDispGrap2DRSPTdView) protected: virtual void OnDraw(CDC* pDC); // overridden to draw this view //}}AFX_VIRTUAL // Implementation protected: virtual ~CDispGrap2DRSPTdView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif // Generated message map functions protected: //{{AFX_MSG(CDispGrap2DRSPTdView) afx_msg int OnMouseActivate(CWnd* pDesktopWnd, UINT nHitTest, UINT message); afx_msg void OnMove(int x, int y); afx_msg void OnSize(UINT nType, int cx, int cy); //}}AFX_MSG DECLARE_MESSAGE_MAP() private: CDC* m_pMemDC; // CRsp2DTdRecord* m_pCurTdRecord; void DrawColorTable(CDC* pDC); CFont m_ftTxt; public: void SetValidPole(int iStartPole, int iEndPole); }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_DISPGRAP2DRSPTDVIEW_H__944250E9_131F_4B13_9704_85E4BA9DE2BB__INCLUDED_)