Added GetOverrideKeyPath and GetOptionKeyPath implementation.

This commit is contained in:
Jacek Caban 2005-11-28 17:30:21 +01:00 committed by Alexandre Julliard
parent 12dd1bc12e
commit 1692bc34c9
1 changed files with 34 additions and 4 deletions

View File

@ -193,8 +193,23 @@ static HRESULT WINAPI DocHostUIHandler_GetOptionKeyPath(IDocHostUIHandler2 *ifac
LPOLESTR *pchKey, DWORD dw)
{
WebBrowser *This = DOCHOSTUI_THIS(iface);
FIXME("(%p)->(%p %ld)\n", This, pchKey, dw);
return E_NOTIMPL;
IDocHostUIHandler *handler;
HRESULT hres;
TRACE("(%p)->(%p %ld)\n", This, pchKey, dw);
if(!This->client)
return S_OK;
hres = IOleClientSite_QueryInterface(This->client, &IID_IDocHostUIHandler,
(void**)&handler);
if(SUCCEEDED(hres)) {
hres = IDocHostUIHandler_GetOptionKeyPath(handler, pchKey, dw);
IDocHostUIHandler_Release(handler);
return hres;
}
return S_OK;
}
static HRESULT WINAPI DocHostUIHandler_GetDropTarget(IDocHostUIHandler2 *iface,
@ -233,8 +248,23 @@ static HRESULT WINAPI DocHostUIHandler_GetOverrideKeyPath(IDocHostUIHandler2 *if
LPOLESTR *pchKey, DWORD dw)
{
WebBrowser *This = DOCHOSTUI_THIS(iface);
FIXME("(%p)->(%p %ld)\n", This, pchKey, dw);
return E_NOTIMPL;
IDocHostUIHandler2 *handler;
HRESULT hres;
TRACE("(%p)->(%p %ld)\n", This, pchKey, dw);
if(!This->client)
return S_OK;
hres = IOleClientSite_QueryInterface(This->client, &IID_IDocHostUIHandler2,
(void**)&handler);
if(SUCCEEDED(hres)) {
hres = IDocHostUIHandler2_GetOverrideKeyPath(handler, pchKey, dw);
IDocHostUIHandler2_Release(handler);
return hres;
}
return S_OK;
}
#undef DOCHOSTUI_THIS