Use wxWindow::PostSizeEvent()
.
Notice, however, that if you avoided the manual handling of wxEVT_SIZE
(which you seem to be doing based on your other questions) and just used sizers, then a simple Layout()
would be enough.
And, FWIW, Refresh()
has nothing to do with size at all, it just results in repainting the window, i.e. can be used to trigger a call to your wxEVT_PAINT
, not wxEVT_SIZE
, handler.