#ifndef _METER_H__
#define _METER_H__


class CNumberCtrl
{
private:
	int m_nBoardColor;
	int m_nFillColor;
	int m_nBackColor;
public:
	void SetBoardColor (COLOR crColor){m_nBoardColor = crColor;}
	void SetFillColor  (COLOR crColor){m_nFillColor = crColor;}
	void SetBackColor  (COLOR crColor){m_nBackColor = crColor;}

public:
	void DrawNumber8(int nX,int nY,int nWidth,int nHeight,BOOL bHorz,BOOL bRed);
	void DrawNumber(int nIndex,int nLeft,int nTop,int nHorzWidth,int nVertWidth,int nThick);

public:
	CNumberCtrl();
};


void DrawMeter (int nX, int nY, int nWidth,
	int nHeight, int nThick, int nNumber);

inline void DrawMeter (int nX, int nY, int nWidth,
	int nHeight, int nThick, char ch)
{
	::DrawMeter (nX, nY, nWidth, nHeight, nThick, (int)(ch - '0'));
}

#endif