Ignore:
Timestamp:
Oct 18, 1999, 12:54:04 PM (26 years ago)
Author:
sandervl
Message:

WS_VISIBLE & scrollbar fixes

File:
1 edited

Legend:

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

    r1333 r1348  
    1 /* $Id: listbox.cpp,v 1.7 1999-10-17 12:17:42 cbratschi Exp $ */
     1/* $Id: listbox.cpp,v 1.8 1999-10-18 10:54:03 sandervl Exp $ */
    22/*
    33 * Listbox controls
     
    204204        info.fMask = SIF_RANGE | SIF_POS | SIF_PAGE;
    205205        info.nMin  = 0;
    206 //        info.nMax = descr->nb_items - info.nPage;
    207206        info.nMax = descr->nb_items;
    208207
     
    210209            info.fMask |= SIF_DISABLENOSCROLL;
    211210
    212         if(info.nMax > (INT)info.nPage) {
    213             ShowScrollBar(hwnd, SB_VERT, TRUE);
    214             EnableScrollBar(hwnd, SB_VERT, ESB_ENABLE_BOTH);
    215             SetScrollInfo( hwnd, SB_VERT, &info, TRUE );
    216         }
    217         else {
    218             ShowScrollBar(hwnd, SB_VERT, FALSE);
    219             EnableScrollBar(hwnd, SB_VERT, ESB_DISABLE_BOTH);
    220         }
     211        SetScrollInfo( hwnd, SB_VERT, &info, TRUE );
    221212
    222213        if (descr->horz_extent)
Note: See TracChangeset for help on using the changeset viewer.