From 9584818ae9cdf0d94f47a6eaf3df2a4f545e1adc Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 20 Jan 2010 00:17:08 +0000 Subject: [PATCH] Disable size grip for TLW status bar if TLW is not resizeable. wxSTB_SIZEGRIP is part of default status bar style but it doesn't make sense for non-resizeable TLWs, so turn it off in this case. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/statusbar.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/msw/statusbar.cpp b/src/msw/statusbar.cpp index d0fe3d05fc..8aa705c35e 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 -- 2.47.2