VC 非窗口类定时器基类

时间:2018-12-09 05:00:35
【文件属性】:
文件名称:VC 非窗口类定时器基类
文件大小:141KB
文件格式:ZIP
更新时间:2018-12-09 05:00:35
VC2015 定时器 实例可用VC2015打开,使用了部分C++11标准的STD容器和智能指针, 所以太老版本IDE不一定用的了。构建了一个基类,使其他继承该基类的非窗口类轻松使用定时器,使用SetMyTimer(id, uElapse)设置定时器, 使用KillMyTimer(id)销毁定时器, 重写虚函数OnMyTimer(id)来获取定时器消息并处理,目前只是简单的做了个测试类,有问题可自己测试
【文件预览】:
MyTimerTest
----.vs()
--------MyTimerTest()
----MyTimerTest.sln(1KB)
----MyTimerTest()
--------TmrEngine.h(195B)
--------MyTimerTest.cpp(2KB)
--------resource.h(1KB)
--------stdafx.h(2KB)
--------MyTimerTest.vcxproj.filters(2KB)
--------targetver.h(240B)
--------MyTimerTest.vcxproj(11KB)
--------MyTimerTest.rc(11KB)
--------stdafx.cpp(144B)
--------MyTimerTest.aps(106KB)
--------MyTimerTestDlg.h(745B)
--------ReadMe.txt(4KB)
--------MyTimerTestDlg.cpp(3KB)
--------MyTimer.cpp(2KB)
--------TmrEngine.cpp(541B)
--------res()
--------MyTimerTest.h(473B)
--------MyTimer.h(582B)

网友评论