CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Location
    California, USA
    Posts
    9

    WebBrowser Control

    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


  2. #2
    Guest

    Re: WebBrowser Control

    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
    [email protected]



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured