OnSize is deprecated in wxWidgets 3.0 - get rid of it