wine/dlls/shdocvw dochost.c

Alexandre Julliard julliard at wine.codeweavers.com
Mon Nov 21 05:59:39 CST 2005


ChangeSet ID:	21357
CVSROOT:	/opt/cvs-commit
Module name:	wine
Changes by:	julliard at winehq.org	2005/11/21 05:59:39

Modified files:
	dlls/shdocvw   : dochost.c 

Log message:
	Jacek Caban <jack at itma.pwr.wroc.pl>
	Added GetHostInfo implementation.

Patch: http://cvs.winehq.org/patch.py?id=21357

Old revision  New revision  Changes     Path
 1.1           1.2           +19 -2      wine/dlls/shdocvw/dochost.c

Index: wine/dlls/shdocvw/dochost.c
diff -u -p wine/dlls/shdocvw/dochost.c:1.1 wine/dlls/shdocvw/dochost.c:1.2
--- wine/dlls/shdocvw/dochost.c:1.1	21 Nov 2005 11:59:39 -0000
+++ wine/dlls/shdocvw/dochost.c	21 Nov 2005 11:59:39 -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-cvs mailing list