Clear the internal paint flag in the server before returning a WM_PAINT message to avoid an extra server round-trip.