mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:02:56 +00:00
[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:
parent
49a55a099e
commit
ffa81857c2
1 changed files with 3 additions and 0 deletions
|
@ -611,6 +611,9 @@ static void LISTBOX_PaintItem( LB_DESCR *descr, HDC hdc, const RECT *rect,
|
||||||
if (index < descr->nb_items)
|
if (index < descr->nb_items)
|
||||||
{
|
{
|
||||||
item_str = get_item_string(descr, index);
|
item_str = get_item_string(descr, index);
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
if (!(descr->style & LBS_NOSEL))
|
||||||
|
#endif
|
||||||
selected = is_item_selected(descr, index);
|
selected = is_item_selected(descr, index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue