I believe there is only ever one WM_PAINT (and WM_TIMER) message on the Message Queue and it is always at the back of the queue.