X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6b5c56bd5fa167a02334d35deb0006e80cdfd44d..b9efe021b554fa3967d1442cf758435c5cd5ae8f:/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; }