Ignore:
Timestamp:
Oct 24, 2001, 11:53:14 AM (24 years ago)
Author:
sandervl
Message:

scrollbar fix; don't set focus unless it has the WS_TABSTOP style

File:
1 edited

Legend:

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

    r7020 r7182  
    1 /* $Id: scroll.cpp,v 1.44 2001-10-11 17:05:02 sandervl Exp $ */
     1/* $Id: scroll.cpp,v 1.45 2001-10-24 09:53:14 sandervl Exp $ */
    22/*
    33 * Scrollbar control
     
    837837        trackThumbPos = thumbPos;
    838838        prevPt = pt;
    839         if (nBar == SB_CTL) SetFocus(hwnd);
     839        if (nBar == SB_CTL && (GetWindowLongA(hwnd, GWL_STYLE) & WS_TABSTOP)) SetFocus( hwnd );
    840840        SetCapture(hwnd);
    841841        break;
Note: See TracChangeset for help on using the changeset viewer.