Re: Disallow window.external on remote sites

From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 08/17/04


Date: Tue, 17 Aug 2004 11:57:02 -0400


"xtreem" <invalid@hotmail.com> wrote in message
news:4122287d$0$19411$61c65585@uq-127creek-reader-01.brisbane.pipenetworks.com.au
> "Igor Tandetnik" <itandetnik@mvps.org> wrote in message
> news:%23zXQT$GhEHA.3864@TK2MSFTNGP10.phx.gbl...
>> So do it. You are implementing IDocHostUIHandler::GetExternal - just
>> check the URL and return NULL if it's the wrong one.
>
> That was what I was thinking, however I am not actually implementing
> IDocHostUIHandler, as I am using CComControl instead. So it is done
> by the IOleObject(?) member I suppose. Will just writing the
> 'GetExternal' method override that? Or do I need expose it somehow.

I'm not sure I follow. Who's implementing IDocHostUIHandler? How do you
provide your IDispatch pointer?

-- 
With best wishes,
    Igor Tandetnik
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken


Relevant Pages

  • Re: Disallow window.external on remote sites
    ... "xtreem" wrote in message ... Who's implementing IDocHostUIHandler? ... >> you provide your IDispatch pointer? ... Instead of SetExternalDispatch, use SetExternalUIHandler ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Disallow window.external on remote sites
    ... Who's implementing IDocHostUIHandler? ... 'htmlviewUI' class is providing the IDispatch pointer. ... window.external in the htmlviewUI class. ... So where should I override IDocUIHostHandler? ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)