Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/104311

From BetaArchive Wiki

INFO: 32-Bit Scroll Ranges


The information in this article applies to:

  • Microsoft Win32 Software Development Kit (SDK)


You can use 32-bit scroll ranges by calling GetScrollPos(); however, you cannot get 32-bit positions for notifications sent while thumb tracking, that is, via the SB_THUMBPOSITION message. This is because thumb position information is not queryable via an application programming interface (API). You only can obtain the 32-bit scroll information only before or after the scroll has taken place.

The scroll bar APIs allow setting a scroll range up to 0x7FFFFFFF via SetScrollRange(), and setting a scroll position within that range using SetScrollPos(). If the WM_HSCROLL or WM_VSCROLL message is processed, the information returned for scroll bar position, nPos, is only a 16-bit value. To obtain the 32-bit information, the GetScrollPos() API must be used.

Additional query words: scrollbar

Keywords : kbCtrl kbOSWinNT kbOSWin2000 kbScrollBar kbSDKWin32 kbGrpDSUser kbOSWin95 kbOSWin98
Issue type : kbinfo
Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch

Last Reviewed: July 12, 2000
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.