Changeset 9542 for trunk/src


Ignore:
Timestamp:
Dec 20, 2002, 4:09:44 PM (23 years ago)
Author:
sandervl
Message:

Send WM_H/VSCROLL with SB_THUMBTRACK when the scrollbar thumb receives a WM_LBUTTONDOWN message

File:
1 edited

Legend:

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

    r7364 r9542  
    1 /* $Id: scroll.cpp,v 1.47 2001-11-16 16:11:01 sandervl Exp $ */
     1/* $Id: scroll.cpp,v 1.48 2002-12-20 15:09:44 sandervl Exp $ */
    22/*
    33 * Scrollbar control
     
    980980            thumbTrackSent = FALSE;
    981981            SCROLL_DrawMovingThumb(hdc, &rect, vertical, arrowSize, thumbSize);
     982#ifdef __WIN32OS2__
     983            //This message is sent in Windows when the user clicks on the
     984            //scroll thumb (even without moving) (NT4, SP6)
     985            SendMessageA( hwndOwner, vertical ? WM_VSCROLL : WM_HSCROLL,
     986                          MAKEWPARAM( SB_THUMBTRACK, SCROLL_TrackingVal),
     987                          hwndCtl );
     988            thumbTrackSent = TRUE;
     989#endif
    982990        } else if ((msg == WM_LBUTTONUP) || (msg == WM_CAPTURECHANGED))
    983991        {
Note: See TracChangeset for help on using the changeset viewer.