Re: How get original IDocHostUIHandler
- From: Ivan Glinka <ivan@xxxxxxxxx>
- Date: Tue, 14 Mar 2006 22:59:32 +0000
How easy :) Thank you!
Charles Law wrote:
Hi Ivan.
Implement IDocHostUIHandler and return default values from each method to get default behaviour. In ShowContextMenu(), if you return S_FALSE then the default menu will be displayed. Return S_OK to suppress it, and you can display your own. You do not need a reference to the default interface.
HTH
Charles
"Ivan Glinka" <ivan@xxxxxxxxx> wrote in message news:dv7fgk$1303$1@xxxxxxxxxxxxxxxxx
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...
- References:
- How get original IDocHostUIHandler
- From: Ivan Glinka
- Re: How get original IDocHostUIHandler
- From: Charles Law
- How get original IDocHostUIHandler
- Prev by Date: Re: How get original IDocHostUIHandler
- Next by Date: Re: IInternetSecurityManager and cookies
- Previous by thread: Re: How get original IDocHostUIHandler
- Index(es):
Relevant Pages
|
|