DigitalPlayer.h
上传用户:clj987822
上传日期:2022-04-25
资源大小:13296k
文件大小:1k
- // DigitalPlayer.h: interface for the CDigitalPlayer class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_DIGITALPLAYER_H__F633CBB2_97A5_4A92_A733_D2F538E4224F__INCLUDED_)
- #define AFX_DIGITALPLAYER_H__F633CBB2_97A5_4A92_A733_D2F538E4224F__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CDigitalPlayer
- {
- public:
- long GetNumber();
- void ShowDigit();
- // void Increase();
- // void Decrease();
- void Create(CWnd *pWnd,int nX,int nY,
- long lOriginal=0, int nMaxNumbers=3, int nSepMics=2,
- COLORREF crColor=RGB(128,0,0),COLORREF crBkColor=RGB(0,0,0));
- void SetNumber(long lOriginal);
- void ReShow();
- CDigitalPlayer()
- {
- Brush.CreateSolidBrush( RGB( 0, 0, 0));//雷数与时间背景色
- Pen1.CreatePen(PS_SOLID,1,RGB(255,255,255));//右下边框色
- Pen2.CreatePen(PS_SOLID,1,RGB(128,128,128));//左上边框色
- Pen3.CreatePen(PS_SOLID,1,RGB(255, 0, 0));//雷数与时间显示部分色
- Pen4.CreatePen(PS_SOLID,1,RGB( 0, 0, 0));//雷数与时间不显示部分色
-
- };
- virtual ~CDigitalPlayer();
- private:
- long m_Mulply;
- int m_nMaxNumber;
- int m_nX,m_nY;
- long m_nCalculator;
- int m_nSepMics;
- void ShowOneDigit(int nWhichDigit, int nWhichBit);
- CWnd* m_pWnd;
- COLORREF m_crColor,m_crBkColor;
- CBrush Brush;
- CPen Pen1,Pen2,Pen3,Pen4;
- };
- #endif // !defined(AFX_DIGITALPLAYER_H__F633CBB2_97A5_4A92_A733_D2F538E4224F__INCLUDED_)