Mar*_*rin 0 c++ windows winapi
我在WinMain中创建了一个线程,之后我有一个经典的msg循环:
while(GetMessage(&msg, NULL, 0, 0))
{
if (!done){
GetExitCodeThread(dThread,&dwCode);
if (dwCode!=STILL_ACTIVE){
//thread done
}
}
if (!IsDialogMessage (UWnd, & msg))
{
TranslateMessage ( & msg );
DispatchMessage ( & msg );
}
}
Run Code Online (Sandbox Code Playgroud)
这样可以正常工作,但如果线程完成,则在窗口上的某些操作完成后(鼠标,焦点等),它不会触发.如果收到消息或线程完成,我怎么能有循环触发器?
谢谢...
| 归档时间: |
|
| 查看次数: |
605 次 |
| 最近记录: |