Use a more robust method of ensuring that repaints happen.

This method works for children in hierarchy that are custom widgets
painting directly to a Windows HDC.