Changeset 2185 for trunk/src/user32/listbox.cpp
- Timestamp:
- Dec 21, 1999, 6:03:46 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/listbox.cpp
r2165 r2185 1 /* $Id: listbox.cpp,v 1.1 4 1999-12-20 19:10:54 cbratschi Exp $ */1 /* $Id: listbox.cpp,v 1.15 1999-12-21 17:03:44 cbratschi Exp $ */ 2 2 /* 3 3 * Listbox controls … … 6 6 * Copyright 1999 Christoph Bratschi (ported from WINE) 7 7 * 8 * WINE version: 991 0318 * WINE version: 991212 9 9 */ 10 10 … … 23 23 * - Unicode 24 24 * - Locale handling 25 * - real WM_SETREDRAW support + for all other controls26 bug: LISTBOX_InvalidateItems -> always redraw!27 25 */ 28 26 … … 959 957 RECT rect; 960 958 959 if (descr->style & LBS_NOREDRAW) return; 960 961 961 if (LISTBOX_GetItemRect( hwnd, descr, index, &rect ) == 1) 962 962 { … … 1232 1232 if (index != -1) descr->items[index].selected = TRUE; 1233 1233 descr->selected_item = index; 1234 if (oldsel != -1) LISTBOX_RepaintItem( hwnd, descr, oldsel, ODA_SELECT);1234 if (oldsel != -1) LISTBOX_RepaintItem( hwnd, descr, oldsel, 0); 1235 1235 if (index != -1) LISTBOX_RepaintItem( hwnd, descr, index, ODA_SELECT ); 1236 1236 if (send_notify && descr->nb_items) SEND_NOTIFICATION( hwnd, descr, … … 1750 1750 LISTBOX_SetCaretIndex( hwnd, descr, index, FALSE ); 1751 1751 LISTBOX_SetSelection( hwnd, descr, index, 1752 !descr->items[index].selected, FALSE ); 1752 !descr->items[index].selected, 1753 (descr->style & LBS_NOTIFY) != 0 ); 1753 1754 } 1754 1755 else LISTBOX_MoveCaret( hwnd, descr, index, FALSE ); … … 1759 1760 LISTBOX_SetSelection( hwnd, descr, index, 1760 1761 (!(descr->style & LBS_MULTIPLESEL) || 1761 !descr->items[index].selected), FALSE ); 1762 !descr->items[index].selected), 1763 (descr->style & LBS_NOTIFY) != 0 ); 1762 1764 } 1763 1765 }
Note:
See TracChangeset
for help on using the changeset viewer.