TimeElapse.h
资源名称:连连看源程序.rar [点击查看]
上传用户:z3308516
上传日期:2013-01-23
资源大小:703k
文件大小:1k
源码类别:
2D图形编程
开发平台:
Visual C++
- #pragma once
- class CTimeElapse
- {
- public:
- CTimeElapse();
- ~CTimeElapse(void);
- public:
- void Begin();
- void Stop();
- void SetTotalTime(int totalSecond);
- void FillRegion(BOOL bRef=FALSE);
- void ShowElapseTime();
- void CTimeElapseInit(HWND hParent,int totalSecond,int udelay=200,BOOL bnet=FALSE);
- static LRESULT CALLBACK ThreadElapseTime(LPARAM lParam);
- void InvalidIt(HWND hParent);
- void Pause();
- void Continue();
- void PlayMidiSound();
- void StopMidiSound();
- void ContinuePlay();
- void QueryStatus();
- void CloseMidiSound();
- public:
- BOOL bNet;
- int totalSecond;
- int numPices;
- static int delay;
- HWND hParent;
- // HBRUSH hbr;
- HBITMAP hBitmap;
- RECT rcFill;
- static BOOL threadExit;
- static BOOL bPause;
- MCI_PLAY_PARMS PlayParms;
- MCI_OPEN_PARMS OpenParms;
- BOOL bBackMidi;
- int iExplore;
- int iReorder;
- };