Article View: borland.public.cppbuilder.internet.web
Article #532Re: Finding out if browser has been scrolled
From: Brian
Date: Fri, 17 Nov 2006 08:21
Date: Fri, 17 Nov 2006 08:21
28 lines
1606 bytes
1606 bytes
Hi Remy,
> Where exactly are you calling the code from? Are you waiting for the
> OnDocumentComplete event to trigger before doing anything?
After calling Navigate, I wait until readystate is complete:
while(web->ReadyState!=Shdocvw_tlb::READYSTATE_COMPLETE)
{
Application->ProcessMessages();
::Sleep(50);
}
>> if( !SUCCEEDED(lpBody->get_scrollTop( ¤t_y)) )
>> {
>> // never seem to happen
>> }
>
> You are testing for "not succeeded". Is that what you really wanted?
Yes, it was just a test. I had a popup message there to see if
the call to get_scrollTop failed on the pages where it returns 0.
It doesn't.
Thanks,
Brian
Technical Details
Message-ID:
<455d711c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<455cec6e$1@newsgroups.borland.com> <455d2f25@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,cd8364cfaf34deb1 X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 17 Nov 2006 09:21:50 +0100 From: Brian <dont@spam.me.please.com> User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.web Subject: Re: Finding out if browser has been scrolled References: <455cec6e$1@newsgroups.borland.com> <455d2f25@newsgroups.borland.com> In-Reply-To: <455d2f25@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 212.130.59.4 Message-ID: <455d711c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1163751708 212.130.59.4 (17 Nov 2006 00:21:48 -0700) Lines: 28 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail