PeekMessage cause software stucked.

  • Thread starter Thread starter ycy0106
  • Start date Start date
Y

ycy0106

Guest
while(PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)){
if(msg.message==WM_QUIT)
return;
TranslateMessage(&msg);
DispatchMessage(&msg);
}

The code above causes the program card to die。The interface of CDialog can`t reaction。 Draw a conclusion through log analysis:The program stops in the upper code section。

Someone can help.

Continue reading...
 
Back
Top