From 5c4eee13851dec07c411d64f34a240396864e3a6 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Mon, 21 Nov 2005 11:59:39 +0000 Subject: [PATCH] Added GetHostInfo implementation. --- dlls/shdocvw/dochost.c | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/dlls/shdocvw/dochost.c b/dlls/shdocvw/dochost.c index bf4bf86d350..c8ef021edaf 100644 --- a/dlls/shdocvw/dochost.c +++ b/dlls/shdocvw/dochost.c @@ -54,8 +54,25 @@ static HRESULT WINAPI DocHostUIHandler_GetHostInfo(IDocHostUIHandler2 *iface, DOCHOSTUIINFO *pInfo) { WebBrowser *This = DOCHOSTUI_THIS(iface); - FIXME("(%p)->(%p)\n", This, pInfo); - return E_NOTIMPL; + IDocHostUIHandler *handler; + HRESULT hres; + + TRACE("(%p)->(%p)\n", This, pInfo); + + if(This->client) { + hres = IOleClientSite_QueryInterface(This->client, &IID_IDocHostUIHandler, (void**)&handler); + if(SUCCEEDED(hres)) { + hres = IDocHostUIHandler_GetHostInfo(handler, pInfo); + IDocHostUIHandler_Release(handler); + if(SUCCEEDED(hres)) + return hres; + } + } + + pInfo->dwFlags = DOCHOSTUIFLAG_DISABLE_HELP_MENU | DOCHOSTUIFLAG_OPENNEWWIN + | DOCHOSTUIFLAG_URL_ENCODING_ENABLE_UTF8 | DOCHOSTUIFLAG_ENABLE_INPLACE_NAVIGATION + | DOCHOSTUIFLAG_IME_ENABLE_RECONVERSION; + return S_OK; } static HRESULT WINAPI DocHostUIHandler_ShowUI(IDocHostUIHandler2 *iface, DWORD dwID,