mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 22:04:55 +02:00
Dark mode enhancement: make combobox focus more visible
Use focus rectangle for list combobox with focus. Fix #13420, close #13421
This commit is contained in:
parent
5e23a86179
commit
24d3a69f0f
@ -1805,8 +1805,13 @@ namespace NppDarkMode
|
|||||||
::DrawText(hdc, buffer, -1, &rcText, DT_NOPREFIX | DT_LEFT | DT_VCENTER | DT_SINGLELINE);
|
::DrawText(hdc, buffer, -1, &rcText, DT_NOPREFIX | DT_LEFT | DT_VCENTER | DT_SINGLELINE);
|
||||||
delete[] buffer;
|
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;
|
hasFocus = ::GetFocus() == hwndEdit;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user