X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/57f4f9255e3d70e219e6eabd68c3990c0f471f81..2d0c2e79c27e46a238cf44562fb98c99e65d79b4:/src/msw/statbr95.cpp diff --git a/src/msw/statbr95.cpp b/src/msw/statbr95.cpp index db9f9fab24..5f49a73018 100644 --- a/src/msw/statbr95.cpp +++ b/src/msw/statbr95.cpp @@ -125,6 +125,14 @@ bool wxStatusBar95::Create(wxWindow *parent, wxStatusBar95::~wxStatusBar95() { + // we must refresh the frame size when the statusbar is deleted but the + // frame is not - otherwise statusbar leaves a hole in the place it used to + // occupy + wxFrame *frame = wxDynamicCast(GetParent(), wxFrame); + if ( frame && !frame->IsBeingDeleted() ) + { + frame->SendSizeEvent(); + } } void wxStatusBar95::SetFieldsCount(int nFields, const int *widths)