From c10d3a54718bb847e1c5ec5a6ed0b19bb930bd51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 30 Sep 2004 16:32:19 +0000 Subject: [PATCH] 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 --- src/msw/statbr95.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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; }