Re: IDocHostUIHandler or IDocHostUIHandler2 ?
From: Charles Law (blank_at_nowhere.com)
Date: 07/03/04
- Previous message: ECVerify.com: "Re: AxWebBrowser authentication issue"
- In reply to: Jerome Schwindling: "IDocHostUIHandler or IDocHostUIHandler2 ?"
- Next in thread: googleuser: "Re: IDocHostUIHandler or IDocHostUIHandler2 ?"
- Reply: googleuser: "Re: IDocHostUIHandler or IDocHostUIHandler2 ?"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 3 Jul 2004 23:28:13 +0100
> Should I perform a call to SetUIHandler somewhere ?
Yes. Call it from the DocumentComplete() event. You can implement the
interface on the host or another class, so long as you inform the WebBrowser
control when the document load is complete, as you need the document to get
the ICustomDoc interface.
HTH
Charles
"Jerome Schwindling" <jerome.schwindling@wanadoo.fr> wrote in message
news:40e69937$0$20010$636a15ce@news.free.fr...
>
> Hello,
>
> I'm hosting a webbrowser control and I would like to get rid of the
> context menu. So I implemented my IDocHostUIHandler class with a
> ShowContextMenu function returning S_OK, and return the pointer to my
> IDocHostUIHandler object in QueryInterface when the IID is
> IID_IDocHostUIHandler
>
> This didn't work, and I realized that the QueryInterface was never
> called with IID_IDocHostUIHandler, but is indeed called with
> IID_IDocHostUIHandler2
>
> So I started again implementing my IDocHostUIHandler2 class, etc.... but
> it still doesn't work. ShowContextMenu is never called....
>
> What am I missing ? Is it correct to use IDocHostUIHandler2 ? Should I
> perform a call to SetUIHandler somewhere ?
>
> Many thanks
> -----
> Posté via http://www.usenetgratuit.com/ plus de 40 000 newsgroups sur le
> Web. Pour signaler un abus : abuse@usenetgratuit.com
>
>
- Previous message: ECVerify.com: "Re: AxWebBrowser authentication issue"
- In reply to: Jerome Schwindling: "IDocHostUIHandler or IDocHostUIHandler2 ?"
- Next in thread: googleuser: "Re: IDocHostUIHandler or IDocHostUIHandler2 ?"
- Reply: googleuser: "Re: IDocHostUIHandler or IDocHostUIHandler2 ?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|