Re: Reload detection



It took some time before I had time to work on this but now I have integrated your PassThruApp
into my MFC application (actually I used PassThruAppBeta). Thank you very much for supplying this
toolkit and for pointing me in the right direction. After a little testing it seemed like I should look for
two BINDF flags BINDF_GETNEWESTVERSION and BINDF_RESYNCHRONIZE. The first
one is on after a javascript reload(true) and the second on after a reload(false). My intention is to
cancel these reload operations. I've added some code to your OnStart function that gets the bind
info flags and if one of them is on the following statement is not executed:
hr = pTargetProtocol->Start(szUrl, spSink, spBindInfo, grfPI, dwReserved);
Instead the OnStart function returns E_ABORT. That cancels the operation but
it also makes the web browser display the information page "This program cannot display the web page".
I would like the original page to stay. I only want to cancel the reload operation. I tried to cancel the
info page in OnNavigateError, but then I get an empty page instead, so that didn't help. I've tried a
number of return codes instead of E_ABORT, but to no avail. Is there a return code that just cancels the
operation? Is it to late to cancel the operation at this stage if one wants to keep the original page?
I would really appreciate if you, Igor, or somebody else could help me out. Thanks in advance!

Best Regards
Jan

www.learnware.se

On Fri, 15 Jun 2007 15:45:14 -0400, "Igor Tandetnik" <itandetnik@xxxxxxxx> wrote:

Pay attention to BINDF flags you get from
IInternetBindInfo::GetBindInfo. There are a few flags that look
promising - e.g. BINDF_RESYNCHRONIZE.



.