Yes, it seems that at some point (in your code) the control is allowed to process the WM_PAINT message.