demos: Handle paint events and call RedrawWindow to animate

This keeps MessageBoxs from validation on Windows from hanging the
demos, while allowing the demo to animate
2 files changed