延迟(不影响消息循环)

 1 DWord dwStart = GetTickCount();
 2 DWord dsEnd = dwstart;
 3 
 4 do{
 5     MSG msg;
 6     GetMessage(&msg,NULL,0,0);
 7     TranslateMessage(&msg);
 8     DispatchMessage(&msg);
 9     dwEnd = GetTickCont()-dwStart;
10 }while(dwEnd<OVERTIME_STATE);
原文地址:https://www.cnblogs.com/youhao1999/p/13567193.html