Ignore:
Timestamp:
Nov 10, 1999, 6:11:31 PM (26 years ago)
Author:
cbratschi
Message:

ShowScrollBar fix

File:
1 edited

Legend:

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

    r1667 r1693  
    1 /* $Id: scroll.cpp,v 1.19 1999-11-09 17:07:22 cbratschi Exp $ */
     1/* $Id: scroll.cpp,v 1.20 1999-11-10 17:11:30 cbratschi Exp $ */
    22/*
    33 * Scrollbar control
     
    16051605    {
    16061606      Win32BaseWindow *window = Win32BaseWindow::GetWindowFromHandle(hwnd);
     1607      BOOL createHorz = FALSE,createVert = FALSE;
    16071608
    16081609      if (!window)
     
    16131614      }
    16141615
    1615       if (window->getStyle() & (WS_HSCROLL | WS_VSCROLL))
    1616       {
    1617         BOOL rc;
    1618 
    1619         if (nBar == SB_HORZ || nBar == SB_BOTH)
    1620             rc = OSLibWinShowScrollBar(window->getOS2FrameWindowHandle(),
    1621                                        window->getHorzScrollHandle(),
    1622                                        OSLIB_HSCROLL, fShow);
    1623 
    1624         if (nBar == SB_VERT || (rc == TRUE && nBar == SB_BOTH))
    1625             rc = OSLibWinShowScrollBar(window->getOS2FrameWindowHandle(),
    1626                                        window->getVertScrollHandle(),
    1627                                        OSLIB_VSCROLL, fShow);
    1628         return rc;
    1629       }
     1616      return window->showScrollBars(nBar == SB_HORZ || nBar == SB_BOTH,nBar == SB_VERT || nBar == SB_BOTH,fShow);
    16301617    }
    16311618
Note: See TracChangeset for help on using the changeset viewer.