Is there a function like PeekMessage that doesn't process messages?
问题 I'm trying to innocently call PeekMessage(&msg, 0, WM_KEYDOWN, WM_KEYUP, PM_NOREMOVE | PM_NOYIELD); and Windows Vista 64, in the PeekMessage call, is processing messages . The result is that I'm going re-entrant on my paint call, and all sorts of other code. Painting can take seconds in our application, so we added the PeekMessage call to see if the user hit a key, so we could interrupt that painting and start up the next one. Little did we realize that Windows could start processing messages