📄 subject_29709.htm
字号:
<p>
序号:29709 发表者:berserker 发表日期:2003-02-12 09:55:12
<br>主题:在VC中如何设置多个定时器
<br>内容:希望能够给出实例<BR>谢谢各位
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:luowen 回复日期:2003-02-13 11:35:07
<br>内容:可用SetTimer来定义,UINT SetTimer( UINT nIDEvent, UINT nElapse, void (CALLBACK EXPORT* lpfnTimer)(HWND, UINT, UINT, DWORD) );可以通过不同nIDEvent或回调函数来分别不同的定时器;如:<BR> SetTimer(1,200,NULL);<BR> SetTimer(2,400,NULL);<BR>在OnTimer中,if(nIDEvent==1){........}<BR> if(nIDEvetn==2){.......}<BR>用回调麻烦一点,要通过AfxGetMainWnd()来取得窗口的指针.<BR>不明白,再问我!<BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:berserker 回复日期:2003-02-13 11:45:39
<br>内容:呵呵,试出来了<BR>谢谢了
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -