Re: Reload detection
- From: Jan Ostedt <ostedt@xxxxxxxxxx>
- Date: Mon, 16 Jul 2007 23:29:26 +0200
On Sun, 15 Jul 2007 21:55:11 -0400, "Igor Tandetnik" <itandetnik@xxxxxxxx> wrote:
I've seen it mentioned a few times (but haven't personally verified)
that you can implement IOleCommandTarget on the same object that
implements IOleClientSite (not sure how it's done in MFC), and when the
user hits Refresh the browser would call Exec on you with the command of
OLECMDID_PREREFRESH. I'm not sure what one can do from here to abort the
operation: perhaps return an error code, perhaps call
IWebBrowser2::Stop. Probably worth playing with.
In my first post in this thread I wrote:
"I have implemented IOleCommandTarget in order to catch OLECMDID_PREREFRESH. I succeeded
to catch the call, but it seems to take place very late in the reload process (in spite of its name)"
So I have already tried to implement IOleCommandTarget, but I will give it another go. May be
I did something wrong. It seems strange that the OLECMDID_PREREFRESH appears late in the
refresh process. Is there anybody else in the group that has experience in this area?
Best Regards
Jan
www.learnware.se
.
- Follow-Ups:
- Re: Reload detection
- From: Jan Ostedt
- Re: Reload detection
- References:
- Re: Reload detection
- From: Jan Ostedt
- Re: Reload detection
- From: Igor Tandetnik
- Re: Reload detection
- Prev by Date: Re: MFC to Web App
- Next by Date: Re: MFC to Web App
- Previous by thread: Re: Reload detection
- Next by thread: Re: Reload detection
- Index(es):