SHDOCVW: Added GetHostInfo implementation
Jacek Caban
jack at itma.pwr.wroc.pl
Sun Nov 20 16:52:51 CST 2005
Changelog:
Added GetHostInfo implementation.
-------------- next part --------------
Index: dlls/shdocvw/dochost.c
===================================================================
RCS file: /home/wine/wine/dlls/shdocvw/dochost.c,v
retrieving revision 1.1
diff -u -p -r1.1 dochost.c
--- dlls/shdocvw/dochost.c 17 Nov 2005 11:03:53 -0000 1.1
+++ dlls/shdocvw/dochost.c 20 Nov 2005 22:53:15 -0000
@@ -54,8 +54,25 @@ static HRESULT WINAPI DocHostUIHandler_G
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,
More information about the wine-patches
mailing list