On Fri, Mar 24, 2000 at 05:17:45PM +0000, Huw D M Davies wrote:
> Send the correct ODA_ code when deselecting an item.
> Index: controls/listbox.c
> ===================================================================
> RCS file: /home/wine/wine/controls/listbox.c,v
> retrieving revision 1.37
> diff -u -r1.37 listbox.c
> --- controls/listbox.c 2000/02/26 19:13:12 1.37
> +++ controls/listbox.c 2000/03/24 17:12:53
> @@ -1269,7 +1269,7 @@
> if (oldsel != -1) descr->items[oldsel].selected = FALSE;
> if (index != -1) descr->items[index].selected = TRUE;
> descr->selected_item = index;
> - if (oldsel != -1) LISTBOX_RepaintItem( wnd, descr, oldsel, 0 );
> + if (oldsel != -1) LISTBOX_RepaintItem( wnd, descr, oldsel, ODA_SELECT );
> if (index != -1) LISTBOX_RepaintItem( wnd, descr, index, ODA_SELECT );
Really? Should we mark ODA_SELECT the old, to be unselected one?
Ciao, Marcus