The Old New Thing

Even though mouse-move, paint, and timer messages are generated on demand, it’s still possible for one to end up in your queue

We all know that the generated-on-demand messages like , , and messages are not posted into the queue when the corresponding event occurs, but rather are generated by or when they detect that they are about to conclude that there is no message to return and the generated-on-demand message can be returned. When this happens, the window ...