Dark mode enhancement: make combobox focus more visible

Use focus rectangle for list combobox with focus.

Fix #13420, close #13421
pull/13444/head
ozone10 2 years ago committed by Don Ho
parent 5e23a86179
commit 24d3a69f0f

@ -1805,8 +1805,13 @@ namespace NppDarkMode
::DrawText(hdc, buffer, -1, &rcText, DT_NOPREFIX | DT_LEFT | DT_VCENTER | DT_SINGLELINE);
delete[] buffer;
}
if (hasFocus && ::SendMessage(hWnd, CB_GETDROPPEDSTATE, 0, 0) == FALSE)
{
::DrawFocusRect(hdc, &rcTextBg);
}
}
else if ((style & CBS_DROPDOWN) == CBS_DROPDOWN && hwndEdit != NULL)
else if ((style & CBS_DROPDOWN) == CBS_DROPDOWN && hwndEdit != nullptr)
{
hasFocus = ::GetFocus() == hwndEdit;
}

Loading…
Cancel
Save