16,471
社区成员
发帖
与我相关
我的任务
分享
int DoEvents()
{
MSG msg;
// Process existing messages in the application's message queue.
// When the queue is empty, do clean up and return.
while (::PeekMessage(&msg,NULL,0,0,PM_NOREMOVE))
{// has msg
if(msg.message== WM_APP) return 1;
if (!AfxGetThread()->PumpMessage()) break;
}
return 0;
}