Ignore:
Timestamp:
Dec 21, 1999, 6:03:46 PM (26 years ago)
Author:
cbratschi
Message:

WINE 991212, WM_SETREDRAW fix, MDI work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/listbox.cpp

    r2165 r2185  
    1 /* $Id: listbox.cpp,v 1.14 1999-12-20 19:10:54 cbratschi Exp $ */
     1/* $Id: listbox.cpp,v 1.15 1999-12-21 17:03:44 cbratschi Exp $ */
    22/*
    33 * Listbox controls
     
    66 * Copyright 1999 Christoph Bratschi (ported from WINE)
    77 *
    8  * WINE version: 991031
     8 * WINE version: 991212
    99 */
    1010
     
    2323 * - Unicode
    2424 * - Locale handling
    25  * - real WM_SETREDRAW support + for all other controls
    26      bug: LISTBOX_InvalidateItems -> always redraw!
    2725 */
    2826
     
    959957    RECT rect;
    960958
     959    if (descr->style & LBS_NOREDRAW) return;
     960
    961961    if (LISTBOX_GetItemRect( hwnd, descr, index, &rect ) == 1)
    962962    {
     
    12321232        if (index != -1) descr->items[index].selected = TRUE;
    12331233        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);
    12351235        if (index != -1) LISTBOX_RepaintItem( hwnd, descr, index, ODA_SELECT );
    12361236        if (send_notify && descr->nb_items) SEND_NOTIFICATION( hwnd, descr,
     
    17501750                LISTBOX_SetCaretIndex( hwnd, descr, index, FALSE );
    17511751                LISTBOX_SetSelection( hwnd, descr, index,
    1752                                       !descr->items[index].selected, FALSE );
     1752                                      !descr->items[index].selected,
     1753                                      (descr->style & LBS_NOTIFY) != 0 );
    17531754            }
    17541755            else LISTBOX_MoveCaret( hwnd, descr, index, FALSE );
     
    17591760            LISTBOX_SetSelection( hwnd, descr, index,
    17601761                                  (!(descr->style & LBS_MULTIPLESEL) ||
    1761                                    !descr->items[index].selected), FALSE );
     1762                                   !descr->items[index].selected),
     1763                                   (descr->style & LBS_NOTIFY) != 0 );
    17621764        }
    17631765    }
Note: See TracChangeset for help on using the changeset viewer.