Painting issue under Windows XP