From 3c44dd85a06e5f9b080de6938a197ec828d03547 Mon Sep 17 00:00:00 2001 From: Tobias Taschner Date: Mon, 21 Sep 2015 16:10:28 +0200 Subject: [PATCH] Only draw focus rect on MSW in wxCollapsibleHeaderCtrl. It is a native look on MSW but looks out of place on other plalforms. --- src/generic/collheaderctrlg.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/generic/collheaderctrlg.cpp b/src/generic/collheaderctrlg.cpp index fc4c152158..9cd57cc134 100644 --- a/src/generic/collheaderctrlg.cpp +++ b/src/generic/collheaderctrlg.cpp @@ -185,8 +185,10 @@ void wxGenericCollapsibleHeaderCtrl::OnPaint(wxPaintEvent& WXUNUSED(event)) dc.DrawLabel(text, textRect, wxALIGN_CENTRE_VERTICAL, indexAccel); +#ifdef __WXMSW__ if ( HasFocus() ) wxRendererNative::Get().DrawFocusRect(this, dc, textRect.Inflate(1), flags); +#endif }