INFO: Using Win32 Scroll Bar APIs with Internet Explorer 4.x (188017)



The information in this article applies to:

  • Microsoft Internet Explorer (Programming) 4.0
  • Microsoft Internet Explorer (Programming) 4.01
  • Microsoft Internet Explorer (Programming) 4.01 SP1

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.

Modification Type:MajorLast Reviewed:9/1/1999
Keywords:kbinfo KB188017