git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44101
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
enclosingRect.right - enclosingRect.left,
enclosingRect.bottom - enclosingRect.top);
enclosingRect.right - enclosingRect.left,
enclosingRect.bottom - enclosingRect.top);
+ bool hasFocus = (wxWindow::FindFocus() == list);
active = IsControlActive(GetControlRef());
// don't paint the background over the vertical rule line
active = IsControlActive(GetControlRef());
// don't paint the background over the vertical rule line
GetThemeDrawingState(&savedState);
GetThemeDrawingState(&savedState);
+ if (active && hasFocus)
{
GetThemeBrushAsColor(kThemeBrushAlternatePrimaryHighlightColor, 32, true, &backgroundColor);
GetThemeTextColor(kThemeTextColorWhite, gdDepth, colorDevice, &labelColor);
{
GetThemeBrushAsColor(kThemeBrushAlternatePrimaryHighlightColor, 32, true, &backgroundColor);
GetThemeTextColor(kThemeTextColorWhite, gdDepth, colorDevice, &labelColor);