RoyalGao

要像一棵树栽在溪水旁,按时侯结果子,叶子也不枯干(诗篇)。
Mail: gaoquanning@163.com

导航

2014年2月17日 #

BCB 延时DelayTime

摘要: 三个方法:1、Sleep();2、使用TTimer组件;3、用GetTickCount(win32API函数),判断两次之差大于等于5000即可。API函数Sleep(60000);DWORDStart=GetTickCount();while(GetTickCount()-StartProcessMessages();加这一句可以保证在这段时间内程序能够执行其它操作}voidDelay(DWORDDT)//DT延时毫秒数{longtt;while(GetTickCount()-ttProcessMessages();if(GetTickCount()-tt<DT){tt=GetTick 阅读全文

posted @ 2014-02-17 14:00 RoyalGao 阅读(1434) 评论(0) 推荐(0) 编辑