A C++ version of basicwin from the book, _Xlib Programming Manual, Rel. 5._