dscott
April 22nd, 1999, 01:04 PM
I have a CHtmlView in my application and I need to find the out what the scroll position of the WebBrowser control is currently. I thought I could query the CScrollView to obtain this information but it looks as if it is not handling the scrolling for the control. Does anyone know how to obtain this information?
TIA
Dan
April 23rd, 1999, 04:47 AM
Hi Dan,
You are right you can't use CScrollView to do this. Since the CHTMLView seems to be simply a means of encapsulating the webbrowser.
The only clue I can give you is to use the IHTMLDocument2* or IHTMLWindow2* interfaces to retrieve the position. I have managed to get the webbrowser to scroll down in my program but I can't tell "where" it has scrolled to yet.
Note it get's more complicated with Frames. As you have to diferentiate which frame should be scrolling . YUK.
Hope I'm pointing you in the right direction and Not putting you off.
Rgards
Colin Davies
taxpaid@bigfoot.com