resize parent's frame client area correctly when statusbar is added

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2004-09-30 16:32:19 +00:00
parent 258bcbfbd3
commit c10d3a5471

View File

@ -119,6 +119,14 @@ bool wxStatusBar95::Create(wxWindow *parent,
InheritAttributes();
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_MENUBAR));
// 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();
}
return true;
}