Are these rectangles windows? If not, it's best to make them labels.
Then just invalidate those labels and it will redraw.