Ignore:
Timestamp:
Oct 17, 1999, 2:17:46 PM (26 years ago)
Author:
cbratschi
Message:

added WINE scrollbars to frame, fixed pmframe, WM_ENTERIDLE

File:
1 edited

Legend:

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

    r1297 r1333  
    1 /* $Id: listbox.cpp,v 1.6 1999-10-14 18:27:55 sandervl Exp $ */
     1/* $Id: listbox.cpp,v 1.7 1999-10-17 12:17:42 cbratschi Exp $ */
    22/*
    33 * Listbox controls
     
    2424 * - Unicode
    2525 * - Locale handling
    26  CB:
    27   - KillSystemTimer, SetSystemTimer
    2826 */
    2927
     
    201199    else
    202200    {
    203         info.nPos  = descr->top_item;
     201        info.nPos  = descr->top_item;
    204202
    205203        info.nPage = LISTBOX_GetCurrentPageSize( hwnd, descr );
     
    212210            info.fMask |= SIF_DISABLENOSCROLL;
    213211
    214         if(info.nMax > (INT)info.nPage) {
    215             ShowScrollBar(hwnd, SB_VERT, TRUE);
    216             EnableScrollBar(hwnd, SB_VERT, ESB_ENABLE_BOTH);           
     212        if(info.nMax > (INT)info.nPage) {
     213            ShowScrollBar(hwnd, SB_VERT, TRUE);
     214            EnableScrollBar(hwnd, SB_VERT, ESB_ENABLE_BOTH);
    217215            SetScrollInfo( hwnd, SB_VERT, &info, TRUE );
    218         }
    219         else {
    220             ShowScrollBar(hwnd, SB_VERT, FALSE);
    221             EnableScrollBar(hwnd, SB_VERT, ESB_DISABLE_BOTH);           
    222         }
     216        }
     217        else {
     218            ShowScrollBar(hwnd, SB_VERT, FALSE);
     219            EnableScrollBar(hwnd, SB_VERT, ESB_DISABLE_BOTH);
     220        }
    223221
    224222        if (descr->horz_extent)
     
    19021900static LRESULT LISTBOX_HandleLButtonUp( HWND hwnd, LB_DESCR *descr )
    19031901{
    1904 /* CB: implement!
    19051902    if (LISTBOX_Timer != LB_TIMER_NONE)
    19061903        KillSystemTimer( hwnd, LB_TIMER_ID );
    1907 */
     1904
    19081905    LISTBOX_Timer = LB_TIMER_NONE;
    19091906    if (descr->captured)
     
    19631960    if (!LISTBOX_HandleTimer( hwnd, descr, descr->focus_item, LISTBOX_Timer ))
    19641961    {
    1965 /* CB: implement!
    19661962        KillSystemTimer( hwnd, LB_TIMER_ID );
    1967 */
     1963
    19681964        LISTBOX_Timer = LB_TIMER_NONE;
    19691965    }
     
    20162012    /* Start/stop the system timer */
    20172013
    2018 /* CB: implement!
    20192014    if (dir != LB_TIMER_NONE)
    20202015        SetSystemTimer( hwnd, LB_TIMER_ID, LB_SCROLL_TIMEOUT, NULL);
    2021 */
    2022 /* CB: implement!
    20232016    else if (LISTBOX_Timer != LB_TIMER_NONE)
    20242017        KillSystemTimer( hwnd, LB_TIMER_ID );
    2025 */
     2018
    20262019    LISTBOX_Timer = dir;
    20272020}
     
    25662559            LISTBOX_HandleMouseMove( hwnd, descr, (INT16)LOWORD(lParam),
    25672560                                     (INT16)HIWORD(lParam) );
    2568         return 1; //SvL: Bugfix -> PMWINDOW expects non-zero return value if
     2561        return 1; //SvL: Bugfix -> PMWINDOW expects non-zero return value if
    25692562                  //               we want to restore the default mouse cursor
    25702563
     
    26782671
    26792672                   GetClientRect(hwnd, &clientRect);
    2680                    if (PtInRect( &clientRect, mousePos ))
    2681                    {
    2682                        captured = descr->captured;
    2683                        descr->captured = TRUE;                 
    2684                
    2685                        LISTBOX_HandleMouseMove( hwnd, descr,
    2686                                                     mousePos.x, mousePos.y);
     2673                   if (PtInRect( &clientRect, mousePos ))
     2674                   {
     2675                       captured = descr->captured;
     2676                       descr->captured = TRUE;
     2677
     2678                       LISTBOX_HandleMouseMove( hwnd, descr,
     2679                                                    mousePos.x, mousePos.y);
    26872680                       descr->captured = captured;
    26882681                   }
    26892682                   else
    26902683                   {
    2691                        LISTBOX_HandleMouseMove( hwnd, descr,
    2692                                                     mousePos.x, mousePos.y);
     2684                       LISTBOX_HandleMouseMove( hwnd, descr,
     2685                                                    mousePos.x, mousePos.y);
    26932686                   }
    26942687
Note: See TracChangeset for help on using the changeset viewer.