From: Václav Slavík Date: Thu, 30 Sep 2004 16:32:19 +0000 (+0000) Subject: resize parent's frame client area correctly when statusbar is added X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c10d3a54718bb847e1c5ec5a6ed0b19bb930bd51 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 --- diff --git a/src/msw/statbr95.cpp b/src/msw/statbr95.cpp index 5f49a73018..37b9b03f73 100644 --- a/src/msw/statbr95.cpp +++ b/src/msw/statbr95.cpp @@ -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; }