Converted to wxWidgets. All code is #if 0-ed.