[COMCTL32] ReactOS second stage listbox selection fix (#7793)

@I_Kill_Bugs patch
CORE-19814
Check for LBS_NOSEL flag for 'descr->style' in 'LISTBOX_PaintItem' and if FALSE, only then set 'selected'.
This commit is contained in:
Doug Lyons 2025-03-22 19:33:50 -05:00 committed by GitHub
parent 49a55a099e
commit ffa81857c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -611,6 +611,9 @@ static void LISTBOX_PaintItem( LB_DESCR *descr, HDC hdc, const RECT *rect,
if (index < descr->nb_items)
{
item_str = get_item_string(descr, index);
#ifdef __REACTOS__
if (!(descr->style & LBS_NOSEL))
#endif
selected = is_item_selected(descr, index);
}