X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6b5c56bd5fa167a02334d35deb0006e80cdfd44d..dc993cbfc601b70a4ddb567cebb5c0780eb4775a:/src/msw/statbr95.cpp

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;
 }