move SendSizeEvent() down to wxWindow from wxFrame; added SendSizeEventToParent() helper

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-07-29 12:32:47 +00:00
parent 9a6d14383a
commit 0dba08dd39
16 changed files with 63 additions and 90 deletions

View File

@@ -125,11 +125,7 @@ bool wxStatusBar::Create(wxWindow *parent,
// we must refresh the frame size when the statusbar is created, because
// its client area might change
wxFrame *frame = wxDynamicCast(GetParent(), wxFrame);
if ( frame )
{
frame->SendSizeEvent();
}
SendSizeEventToParent();
return true;
}
@@ -139,11 +135,7 @@ wxStatusBar::~wxStatusBar()
// 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();
}
SendSizeEventToParent();
}
void wxStatusBar::SetFieldsCount(int nFields, const int *widths)