]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/statbr95.cpp
Better alphabetized the event handler macros
[wxWidgets.git] / 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;
 }