VC里的Application.ProcessMessage()功能类似的函数

DWORD dwStart = GetTickCount();
DWORD dwEnd = dwStart;
do
{
 MSG msg;
 GetMessage(&msg,NULL,0,0);
   // or PeekMessage(&msg,NULL,0,0,PM_REMOVE);
 TranslateMessage(&msg);
 DispatchMessage(&msg);
 dwEnd = GetTickCount()-dwStart;
}while(dwEnd <50);

posted on 2005-11-07 14:21  痛并快乐着  阅读(1196)  评论(0编辑  收藏  举报

导航