Implements new Refresh code.

D (none) davea at ubuntu.
Tue Dec 8 16:44:15 CST 2009


---
 dlls/shdocvw/webbrowser.c |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/dlls/shdocvw/webbrowser.c b/dlls/shdocvw/webbrowser.c
index 6c3c671..420aa34 100644
--- a/dlls/shdocvw/webbrowser.c
+++ b/dlls/shdocvw/webbrowser.c
@@ -31,6 +31,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
 
 #define WEBBROWSER_THIS(iface) DEFINE_THIS(WebBrowser, WebBrowser2, iface)
 
+static HRESULT WINAPI WebBrowser_get_LocationURL(IWebBrowser2 *iface, BSTR *LocationURL);
+
 static HRESULT WINAPI WebBrowser_QueryInterface(IWebBrowser2 *iface, REFIID riid, LPVOID *ppv)
 {
     WebBrowser *This = WEBBROWSER_THIS(iface);
@@ -279,8 +281,17 @@ static HRESULT WINAPI WebBrowser_Navigate(IWebBrowser2 *iface, BSTR szUrl,
 static HRESULT WINAPI WebBrowser_Refresh(IWebBrowser2 *iface)
 {
     WebBrowser *This = WEBBROWSER_THIS(iface);
-    FIXME("(%p)\n", This);
-    return E_NOTIMPL;
+    BSTR url;
+    HRESULT res;
+
+    TRACE("(%p)\n", This);
+    res = WebBrowser_get_LocationURL(iface, &url);
+    if( res != S_OK) {
+       FIXME("(%p)-> ERROR calling WebBrowser_get_LocationURL\n", This);
+       return res;
+    }
+    TRACE("(%p)->(%s )\n", This, debugstr_w(url));
+    return navigate_url(&This->doc_host, url, NULL,NULL,NULL,NULL);
 }
 
 static HRESULT WINAPI WebBrowser_Refresh2(IWebBrowser2 *iface, VARIANT *Level)
-- 
1.6.3.3


--------------010206040407040805050701--



More information about the wine-patches mailing list