Sorry folks, I would answer this myself but I am away from my development machine.

Scrollbars are strange creatures. Acoording to M$, they are both a 16 and 32 bit control. Well I was driving home and a thought struck me. The WM_HSCROLL and WM_VSCROLL are 16 bit messages. So if I set the control to a large 32 bit range and then started scrolling via the thumb tack, what happens? Does the value simply wrap around or will it just stop 1/2 way through the scrolling process?
Posted on 2002-05-17 18:31:03 by Graebel
Note that the WM_HSCROLL message carries only 16 bits of scroll box position data. Thus, applications that rely solely on WM_HSCROLL (and WM_VSCROLL) for scroll position data have a practical maximum position value of 65,535.

However, because the SetScrollInfo, SetScrollPos, SetScrollRange, GetScrollInfo, GetScrollPos, and GetScrollRange functions support 32-bit scroll bar position data, there is a way to circumvent the 16-bit barrier of the WM_HSCROLL and WM_VSCROLL messages. See GetScrollInfo for a description of the technique.
GetScrollInfo

This is one of the places we see signs of Windows' old age. :)
Posted on 2002-05-17 19:02:59 by bitRAKE
Yes bitRAKE, thats exacly the quote I was think of when this idea crossed my mind. However if I remember correctly, GetScrollInfo cannot be used during mouse tracking of the thumb tack. Only before the tracking starts or after. Nice idea however. I am still trying to find a way to curcumvent this without going to all the trouble of writing my own freaking scroll bar control :rolleyes:
Posted on 2002-05-17 20:04:48 by Graebel
Saw this on MSDN about a week ago.. might help you out. It's near the bottom of the following link

Link is: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/scrolbar_52b3.asp

Quote is:


To get the 32-bit position of the scroll box (thumb) during a SB_THUMBTRACK request code in a WM_HSCROLL or WM_VSCROLL message, call GetScrollInfo with the SIF_TRACKPOS value in the fMask member of the SCROLLINFO structure. The function returns the tracking position of the scroll box in the nTrackPos member of the SCROLLINFO structure. This allows you to get the position of the scroll box as the user moves it. The following sample code illustrates the technique.
--deleted--
Posted on 2002-05-18 00:15:12 by chorus