Re: Inconsistent results with IHTMLBodyElement etc
- From: chris@xxxxxxxxxxx
- Date: 7 Jun 2006 05:53:25 -0700
Thanks a lot, Igor. I haven't had a chance to test this yet, but I'm
confident that the varying <!DOCTYPE>s will explain the problem.
It's slightly annoying that the MSDN docs for (eg) IHTMLDocument2 don't
have a section saying "if you want to do X, see IHTMLDocument3"... I
get the impression that the docs for Document2 haven't been updated
since Document3 was added? If I'd just read the docs for Document3, I
might have solved this by myself. I guess the solution is to set aside
a couple of weeks to just read *all* the docs :-)
Anyway, thanks again for the pointer.
Chris.
Igor Tandetnik wrote:
<chris@xxxxxxxxxxx> wrote in message
news:1149636992.233820.34250@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
For some URLs, calling be->get_scrollHeight and be->get_scrollWidth
returns sensible values, and put_scrollTop and get_scrollTop behave as
expected, causing the window to scroll. This works fine for
"www.oview.co.uk" and "www.b3ta.com/board", for example. However, for
the URL "www.b3ta.com" (amongst many others), get_scrollHeight returns
'53' although the page is clearly much longer than that, put_scrollTop
has no effect, and get_scrollTop always returns 0, even if I manually
scroll the page down.
See if this helps:
http://groups.google.com/group/microsoft.public.inetsdk.programming.webbrowser_ctl/browse_frm/thread/fa3452e1bbb6bcf5
--
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
.
- References:
- Inconsistent results with IHTMLBodyElement etc
- From: chris
- Re: Inconsistent results with IHTMLBodyElement etc
- From: Igor Tandetnik
- Inconsistent results with IHTMLBodyElement etc
- Prev by Date: Re: Inconsistent results with IHTMLBodyElement etc
- Next by Date: HTMLTextContainerEvents2 without DocumentComplete?
- Previous by thread: Re: Inconsistent results with IHTMLBodyElement etc
- Next by thread: Re: Inconsistent results with IHTMLBodyElement etc
- Index(es):