Added GetHostInfo implementation.

This commit is contained in:
Jacek Caban 2005-11-21 11:59:39 +00:00 committed by Alexandre Julliard
parent 2f57b9f36e
commit 5c4eee1385
1 changed files with 19 additions and 2 deletions

View File

@ -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,