Wxwidgets: Don't resize in paint handler, it makes wxwidgets blow up