MonitorSpeedbase.h
资源名称:GGBT.rar [点击查看]
上传用户:lds876
上传日期:2013-05-25
资源大小:567k
文件大小:1k
源码类别:
P2P编程
开发平台:
Visual C++
- // MonitorSpeedbase.h: interface for the CMonitorSpeedbase class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_MONITORSPEEDBASE_H__CA7256E2_22C0_40E0_B55E_2B7C176C55E0__INCLUDED_)
- #define AFX_MONITORSPEEDBASE_H__CA7256E2_22C0_40E0_B55E_2B7C176C55E0__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "CategoryDownload.h"
- class CMonitorSpeedbase : public CWnd
- {
- public:
- void CreateEx(CCategoryDownload* pCategoryDownload, long lFontSize);
- void OnPaint(CDC& dc, CRect rc, bool bShowText);
- void OnTimer();
- CMonitorSpeedbase();
- virtual ~CMonitorSpeedbase();
- private:
- long GetMaxValue(long lValue[], long lCount);
- void DrawLine(long lValue[], CDC& dc, COLORREF cor, CRect& rc, long lMax, long iVisibleCount);
- CCategoryDownload* m_pCategoryDownload;
- long m_lUpRate;
- long m_lDownRate;
- CFont m_font;
- enum {eCount = 500};
- long m_lValueUp[eCount];
- long m_lValueDown[eCount];
- long m_lIndex;
- long m_lGridWidth;
- };
- #endif // !defined(AFX_MONITORSPEEDBASE_H__CA7256E2_22C0_40E0_B55E_2B7C176C55E0__INCLUDED_)