X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/355ce7adea8043d72e02cd00aa7f475f3b3be92d..f79cf73292f47d1d225297f53b1cfc30bda0462f:/src/msw/statusbar.cpp diff --git a/src/msw/statusbar.cpp b/src/msw/statusbar.cpp index d0fe3d05fc..a7031f4f51 100644 --- a/src/msw/statusbar.cpp +++ b/src/msw/statusbar.cpp @@ -104,6 +104,12 @@ bool wxStatusBar::Create(wxWindow *parent, if ( style & wxCLIP_SIBLINGS ) wstyle |= WS_CLIPSIBLINGS; + // wxSTB_SIZEGRIP is part of our default style but it doesn't make sense to + // show size grip if this is the status bar of a non-resizeable TLW so turn + // it off in such case + if ( parent->IsTopLevel() && !parent->HasFlag(wxRESIZE_BORDER) ) + style &= ~wxSTB_SIZEGRIP; + // setting SBARS_SIZEGRIP is perfectly useless: it's always on by default // (at least in the version of comctl32.dll I'm using), and the only way to // turn it off is to use CCS_TOP style - as we position the status bar @@ -173,11 +179,7 @@ wxStatusBar::~wxStatusBar() // delete existing tooltips for (size_t i=0; i