ALL


  Paint messages will come in as fast as you let them

There is a class of messages which are generated on demandrather than explicitly posted into a message queue.If you call Get­Message or Peek­Messageand the queue is empty,then the window manager will look to see if one of thesegenerated-on-demand messages is due,messages likeWM_TIMER,WM_MOUSE­MOVE,and WM_PAINT.Neil wonders,"In that program that called Invalidate­Rect 100,000 times,how many paint messages were generated?"The Zen answer to this question is "Yes."A more practical answer is "As many as you can get."When somebody calls Invalidate­Rect,the window manager adds the spec...

2,434 0       WORK WM_PAINT PAINT MESSAGE MOUSE MOVE