[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: selection for multiselect listboxes
From:       Alexandre Julliard <julliard () winehq ! com>
Date:       2000-02-27 20:20:38
[Download RAW message or body]

gerard patel <g.patel@wanadoo.fr> writes:

> @@ -1193,6 +1193,7 @@
>          {
>              if (descr->items[i].selected) continue;
>              descr->items[i].selected = TRUE;
> +            descr->focus_item = i;
>              LISTBOX_RepaintItem( wnd, descr, i, ODA_SELECT );
>          }
>      }     

I think you want to use LISTBOX_SetCaretIndex instead; directly
banging on focus_item will cause painting problems.

-- 
Alexandre Julliard
julliard@winehq.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic