]> git.saurik.com Git - wxWidgets.git/commitdiff
resize parent's frame client area correctly when statusbar is added
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 30 Sep 2004 16:32:19 +0000 (16:32 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 30 Sep 2004 16:32:19 +0000 (16:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/statbr95.cpp

index 5f49a730188be3e565cb2c9f21876d32ad8c6e23..37b9b03f73c7822e6263418f242a23067461b37d 100644 (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;
 }