How get original IDocHostUIHandler
- From: Ivan Glinka <ivan@xxxxxxxxx>
- Date: Tue, 14 Mar 2006 22:19:56 +0000
Hi,
I want to implement my IDocHostUIHandler interface, but actually I want to implement only ShowContextMenu function. I think I can do it, but the problem is that I want to either display my menu or the original one - that one which is supplied by the IE.
I think I need to keep the pointer to the original IDocHostUIHandler interface (let's call the pointer m_IDocHostUIHandler ) and then depending on the situation I will return either
m_IDocHostUIHandler->ShowContextMenu(...)
or implement my own menu.
All other functions I would like to implememt like proxy. For example, for EnableModeless:
return (m_IDocHostUIHandler) ? m_IDocHostUIHandler->EnableModeless(fEnable) : S_OK;
So the question how can I get the pointer to the original IDocHostUIHandler interface? I mean that one that is used by the webbrowser control when I don't implement my own.
All the docs say is that web browser will QueryInterface IOleClientSite for that interface, but I implement IOleClientSite...
.
- Follow-Ups:
- Re: How get original IDocHostUIHandler
- From: Charles Law
- Re: How get original IDocHostUIHandler
- Prev by Date: Re: Capturing an event from a BHO
- Next by Date: Re: How get original IDocHostUIHandler
- Previous by thread: IE autocomplete vs. address bar drop down
- Next by thread: Re: How get original IDocHostUIHandler
- Index(es):