Simplify newWnd with some metaprogramming.
Simplify example code; don't print the window pos twice.