Re: scrolling in an IE add-on



<vsimionescu@xxxxxxxxxx> wrote in message
news:1192788319.534623.174650@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
I know this question has been asked before in this group. I'm having
problems obtaining the scroll position in an IE add-on, and then
scrolling. But let's first focus on obtaining the position. I've tried
the method I found right here and that seemed to me it's the most
recommended, namely via IHTMLDocument2::get_body, and
IHTMLTextContainer::get_scrollTop . It doesn't work; more
specifically, it works on some web pages such as

http://news.google.com/nwshp?tab=wn

but doesn't work on others, including the Google and Yahoo main pages.

http://groups.google.com/group/microsoft.public.inetsdk.programming.webbrowser_ctl/browse_frm/thread/fa3452e1bbb6bcf5

Also, maybe there's another more reliable (actually, that is: very
reliable) way of scrolling.

put_scrollTop
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.


Loading