Changed the type of the window class and defined all of its members
  explicitly