Microsoft KB Archive/188017

= INFO: Using Win32 Scroll Bar APIs with Internet Explorer 4.x =

Article ID: 188017

Article Last Modified on 9/1/1999

-

APPLIES TO


 * Microsoft Internet Explorer 4.0 128-Bit Edition
 * Microsoft Internet Explorer 4.01 Service Pack 2
 * Microsoft Internet Explorer 4.01 Service Pack 1

-



This article was previously published under Q188017



SUMMARY
It is not possible to use Win32 scroll bar APIs such as GetScrollInfo with a handle to an Internet Explorer's browser window. Additionally, Internet Explorer's browser window does not respond to WM_VSCROLL and WM_HSCROLL Windows messages.

The reason for this is that Internet Explorer paints its own scroll bar in the client area of the browser window. Win32 APIs like GetScrollInfo and scroll messages do not work because Internet Explorer is not using the scroll bar provided by Win32.



MORE INFORMATION
Some applications attempt to find Internet Explorer's browser window handle and use Win32 Scroll Bar APIs, such as GetScrollInfo, to get the current position of the document displayed by Internet Explorer. This technique does not work in the Internet Explorer versions listed above because it paints.

Additional query words: kbnokeyword

Keywords: kbinfo KB188017

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.