The structure of the PeekMessage pump is one of the things I significantly glossed over for simplicity's sake. PeekMessage returns zero on no messages available, or a non-zero value on messages available. At that point, you're probably looking at a structure more like: BOOL isFinished = false; while(!isFinished){ if(PeekMessage(/*blah*/){ TranslateMessage(); &nb
airhed13
0
Posts
4
Replies
94
Reputation
24 Replies
12,717 Views
I think that this is actually the result of using a very typical, accepted, and normal technique for developing software that typically runs with minimal user multi-tasking. If you're familiar with the terms, GC2 is polling the message queue, not blocking on it. Specifically: When using a program like Microsoft Word or Notepad, the program is very frequently not doing anything. It has nothing to do while waiting for you to hit the next key, for example. Because there's a
24 Replies
12,717 Views