add SetWindowSize member function to EventHandler