⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 metericon.h

📁 eMule0.44b的原代码
💻 H
字号:
// MeterIcon.h: interface for the CMeterIcon class.
//
// Created: 04/02/2001 {mm/dm/yyyyy}
// Written by: Anish Mistry http://am-productions.yi.org/
/* This code is licensed under the GNU GPL.  See License.txt or (http://www.gnu.org/copyleft/gpl.html). */
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_METERICON_H__BDEBD2C3_BBC3_41B3_A502_E745FB08D90D__INCLUDED_)
#define AFX_METERICON_H__BDEBD2C3_BBC3_41B3_A502_E745FB08D90D__INCLUDED_

#pragma once

class CMeterIcon  
{
public:
	bool SetColorLevels(int *pLimits,COLORREF *pColors,int nEntries);
	COLORREF SetBorderColor(COLORREF crColor);
	int SetNumBars(int nNum);
	int SetMaxValue(int nVal);
	int SetWidth(int nWidth);
	SIZE SetDimensions(int nWidth,int nHeight);
	bool Init(HICON hFrame, int nMaxVal, int nNumBars, int nSpacingWidth, int nWidth, int nHeight, COLORREF crColor);
	HICON Create(int *pBarData);
	HICON SetFrame(HICON hIcon);
	CMeterIcon();
	virtual ~CMeterIcon();

protected:
	int m_nEntries;
	bool DrawIconMeter(HDC destDC, HDC destDCMask, int nLevel, int nPos);
	HICON CreateMeterIcon(int *pBarData);
	COLORREF GetMeterColor(int nLevel);
	bool m_bInit;
	HICON m_hFrame;
	int m_nSpacingWidth;
	int m_nMaxVal;
	SIZE m_sDimensions;
	int m_nNumBars;
	COLORREF m_crBorderColor;
	int *m_pLimits;
	COLORREF *m_pColors;

};

#endif // !defined(AFX_METERICON_H__BDEBD2C3_BBC3_41B3_A502_E745FB08D90D__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -