How get original IDocHostUIHandler



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...

.