From 6b5c56bd5fa167a02334d35deb0006e80cdfd44d Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 26 Sep 2004 10:26:21 +0000 Subject: [PATCH] notify parent frame that client area changed when statusbar is destroyed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29384 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/statbr95.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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) -- 2.45.2