A Class To Encapsulate MultiMedia Timers - 项目摘要 |
摘要
| 管理 |
论坛 文档
| 软件包 |
|
|
|
项目描述: |
This simple class encapsulates the multimedia timers. To use the class include mmTimers.cpp and mmTimers.h in your project. Link with winmm.lib. To use a timer derive a class from CMMTimers and override member timerProc. timerProc will be called when the timer goes off. Instantiate a variable of the new class. The parameter to the constructor is the timer resolution in ms. To start a timer call startTimer. The first parameter specifies the period of the timer in ms.
这个简单的类封装了多媒体定时器。为了使用这个类,需要在你的项目中包括mmTimers.cpp 和 mmTimers.h,链接winmm.lib到项目中。要使用定时器,从CMMTimers 派生一个CMMTimers ,重载成员timerProc。timerProc 将会在定时器触发时被调用。实例化这个新类的一个变量。构造函数的参数是以毫秒为粒度的时间分辨率。调用startTimer来启动一个定时器。
来源: http://www.codeguru.com/multimedia/mmTimers.shtml |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
mmTimers |
 1.0  |
2004-04-18 |
下载 |
|
|