Only draw focus rect on MSW in wxCollapsibleHeaderCtrl.
It is a native look on MSW but looks out of place on other plalforms.
This commit is contained in:
parent
b012e559bc
commit
3c44dd85a0
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user