wxFrame::OnSize

void OnSize(int w, int h)

Called when the user or application resizes the frame. The parameters give the total size of the frame. The default OnSize member looks for a single subwindow, and if one is found, resizes it to fit inside the frame. Override this member if more complex behaviour is required (for example, if there are several subwindows).