多媒体定时器的问题

fat_how 2003-08-24 01:37:28
在timeSetEvent中的回调函数TimeProc
void CALLBACK TimeProc(
  UINT uID,
  UINT uMsg,
  DWORD dwUser,
  DWORD dw1,
  DWORD dw2
);
其中的uMsg,dw1,dw2传过来的是什么?
谢谢
...全文
56 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
AthlonxpX86 2003-08-26
  • 打赏
  • 举报
回复
MSDN:

TimeProc
The TimeProc function callback function that is called once upon the expiration of a single event or periodically upon the expiration of periodic events.

void CALLBACK TimeProc(
UINT uID,
UINT uMsg,
DWORD dwUser,
DWORD dw1,
DWORD dw2
);
TimeProc is a placeholder for the application-defined function name.

Parameters
uID
Identifier of the timer event. This identifier was returned by the timeSetEvent function when the timer event was set up.
uMsg
Reserved; do not use.
dwUser
User instance data supplied to the dwUser parameter of timeSetEvent.
dw1
Reserved; do not use.
dw2
Reserved; do not use.


dwUser是timeSetEvent函数指定传给你TimeProc的4字节数据
dw1 dw2保留,不使用

2,640

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 硬件/系统
社区管理员
  • 硬件/系统社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧