Paint events are generated whenever the window needs
to be repainted. In particular, they occur under these
circumstances:
- when another window has obscured the current window and is
moved away, exposing a part of the current window
- when the window is minimized and restored
- when the Refresh method is called