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
This commit is contained in:
Václav Slavík 2004-09-26 10:26:21 +00:00
parent eab19a7c79
commit 6b5c56bd5f

View File

@ -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)