Alistair Leslie-Hughes : mshtml: Implement IHTMLBodyElement put_background.

Alexandre Julliard julliard at winehq.org
Tue Sep 23 09:28:50 CDT 2008


Module: wine
Branch: master
Commit: b9356960db9808f6de7bace41b2c6352416d008f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b9356960db9808f6de7bace41b2c6352416d008f

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Tue Sep 23 20:03:58 2008 +1000

mshtml: Implement IHTMLBodyElement put_background.

---

 dlls/mshtml/htmlbody.c |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/dlls/mshtml/htmlbody.c b/dlls/mshtml/htmlbody.c
index 9fad187..e5545f5 100644
--- a/dlls/mshtml/htmlbody.c
+++ b/dlls/mshtml/htmlbody.c
@@ -140,8 +140,23 @@ static HRESULT WINAPI HTMLBodyElement_Invoke(IHTMLBodyElement *iface, DISPID dis
 static HRESULT WINAPI HTMLBodyElement_put_background(IHTMLBodyElement *iface, BSTR v)
 {
     HTMLBodyElement *This = HTMLBODY_THIS(iface);
-    FIXME("(%p)->(%s)\n", This, debugstr_w(v));
-    return E_NOTIMPL;
+    HRESULT hr = S_OK;
+    nsAString nsstr;
+    nsresult nsres;
+
+    TRACE("(%p)->(%s)\n", This, debugstr_w(v));
+
+    nsAString_Init(&nsstr, v);
+
+    nsres = nsIDOMHTMLBodyElement_SetBackground(This->nsbody, &nsstr);
+    if(!NS_SUCCEEDED(nsres))
+    {
+        hr = E_FAIL;
+    }
+
+    nsAString_Finish(&nsstr);
+
+    return hr;
 }
 
 static HRESULT WINAPI HTMLBodyElement_get_background(IHTMLBodyElement *iface, BSTR *p)




More information about the wine-cvs mailing list