HOWTO: How To Get 32-bit Scroll Position During Scroll Messages (152252)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 2.1
- Microsoft Visual C++, 32-bit Editions 2.2
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Editions 4.1
This article was previously published under Q152252 SUMMARY
The current scroll bar position accompanying the SB_THUMBTRACK and
SB_THUMBPOSITION type of scroll messages is only 16-bits wide. Functions
such as GetScrollPos, SetScrollPos, GetScrollRange, and SetScrollRange can
handle 32-bit value scroll-box positions. This article discusses how the
GetScrollInfo call can be used to retrieve 32-bit scroll position during
scroll messages.
Modification Type: | Major | Last Reviewed: | 10/24/2003 |
---|
Keywords: | kbCtrl kbhowto kbScrollBar KbUIDesign KB152252 |
---|
|