From 226aced512db8c0d0cd66d6df73eea5900b6be1f Mon Sep 17 00:00:00 2001 From: Jose Carlos Jesus Date: Sun, 9 Jun 2024 16:02:38 -0400 Subject: [PATCH] [COMCTL32/LISTBOX] Fix issue when dragging the mouse over icon list --- dll/win32/comctl32/listbox.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dll/win32/comctl32/listbox.c b/dll/win32/comctl32/listbox.c index 897f2dc2c69..14728e123db 100644 --- a/dll/win32/comctl32/listbox.c +++ b/dll/win32/comctl32/listbox.c @@ -2087,9 +2087,12 @@ static LRESULT LISTBOX_HandleLButtonDown( LB_DESCR *descr, DWORD keys, INT x, IN else { descr->anchor_item = index; +#ifndef __REACTOS__ LISTBOX_MoveCaret( descr, index, FALSE ); +#else LISTBOX_SetSelection( descr, index, TRUE, (descr->style & LBS_NOTIFY) != 0 ); +#endif } if (!descr->lphc) @@ -2252,7 +2255,11 @@ static LRESULT LISTBOX_HandleTimer( LB_DESCR *descr, INT index, TIMER_DIRECTION break; } if (index == descr->focus_item) return FALSE; +#ifdef __REACTOS__ + LISTBOX_SetSelection( descr, index, TRUE, (descr->style & LBS_NOTIFY) != 0 ); +#else LISTBOX_MoveCaret( descr, index, FALSE ); +#endif return TRUE; } -- 2.42.0.windows.1