Jacek Caban : mshtml: Added partial IHTMLDocument2:: put_designMode implementation.
Alexandre Julliard
julliard at winehq.org
Tue Apr 23 13:52:23 CDT 2013
Module: wine
Branch: master
Commit: 0a346e21020d3af7b187824692305716fb30c679
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0a346e21020d3af7b187824692305716fb30c679
Author: Jacek Caban <jacek at codeweavers.com>
Date: Tue Apr 23 12:58:18 2013 +0200
mshtml: Added partial IHTMLDocument2::put_designMode implementation.
---
dlls/mshtml/htmldoc.c | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/htmldoc.c b/dlls/mshtml/htmldoc.c
index 7168bab..36308f0 100644
--- a/dlls/mshtml/htmldoc.c
+++ b/dlls/mshtml/htmldoc.c
@@ -413,8 +413,23 @@ static HRESULT WINAPI HTMLDocument_get_scripts(IHTMLDocument2 *iface, IHTMLEleme
static HRESULT WINAPI HTMLDocument_put_designMode(IHTMLDocument2 *iface, BSTR v)
{
HTMLDocument *This = impl_from_IHTMLDocument2(iface);
- FIXME("(%p)->(%s)\n", This, debugstr_w(v));
- return E_NOTIMPL;
+ HRESULT hres;
+
+ static const WCHAR onW[] = {'o','n',0};
+
+ TRACE("(%p)->(%s)\n", This, debugstr_w(v));
+
+ if(strcmpiW(v, onW)) {
+ FIXME("Unsupported arg %s\n", debugstr_w(v));
+ return E_NOTIMPL;
+ }
+
+ hres = setup_edit_mode(This->doc_obj);
+ if(FAILED(hres))
+ return hres;
+
+ call_property_onchanged(&This->cp_container, 1014);
+ return S_OK;
}
static HRESULT WINAPI HTMLDocument_get_designMode(IHTMLDocument2 *iface, BSTR *p)
More information about the wine-cvs
mailing list