Ignore:
Timestamp:
Oct 14, 1999, 11:22:43 AM (26 years ago)
Author:
sandervl
Message:

Window creation rewrite + bugfixes. NOT WORKING CORRECTLY YET..

File:
1 edited

Legend:

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

    r1265 r1281  
    1 /* $Id: listbox.cpp,v 1.4 1999-10-13 14:24:24 sandervl Exp $ */
     1/* $Id: listbox.cpp,v 1.5 1999-10-14 09:22:39 sandervl Exp $ */
    22/*
    33 * Listbox controls
     
    201201    else
    202202    {
    203         info.nMin  = 0;
    204         info.nMax = descr->nb_items - 1;
    205 //        info.nPos  = descr->top_item;
    206         info.nPos = descr->selected_item - 1;
     203        info.nPos  = descr->top_item;
     204
    207205        info.nPage = LISTBOX_GetCurrentPageSize( hwnd, descr );
    208206        info.fMask = SIF_RANGE | SIF_POS | SIF_PAGE;
     207        info.nMin  = 0;
     208//        info.nMax = descr->nb_items - info.nPage;
     209        info.nMax = descr->nb_items;
     210
    209211        if (descr->style & LBS_DISABLENOSCROLL)
    210212            info.fMask |= SIF_DISABLENOSCROLL;
Note: See TracChangeset for help on using the changeset viewer.