Jacek Caban : mshtml: Added IHTMLElement2:: oncontextmenu property implementation.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon May 2 09:52:31 CDT 2016
Module: wine
Branch: master
Commit: c766386f360b56608c45e3b4c0b2a5ebbdffa80a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c766386f360b56608c45e3b4c0b2a5ebbdffa80a
Author: Jacek Caban <jacek at codeweavers.com>
Date: Mon May 2 14:17:40 2016 +0200
mshtml: Added IHTMLElement2::oncontextmenu property implementation.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mshtml/htmlelem.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/dlls/mshtml/htmlelem.c b/dlls/mshtml/htmlelem.c
index 033800b..9456759 100644
--- a/dlls/mshtml/htmlelem.c
+++ b/dlls/mshtml/htmlelem.c
@@ -2925,15 +2925,19 @@ static HRESULT WINAPI HTMLElement2_mergeAttributes(IHTMLElement2 *iface, IHTMLEl
static HRESULT WINAPI HTMLElement2_put_oncontextmenu(IHTMLElement2 *iface, VARIANT v)
{
HTMLElement *This = impl_from_IHTMLElement2(iface);
- FIXME("(%p)->()\n", This);
- return E_NOTIMPL;
+
+ TRACE("(%p)->()\n", This);
+
+ return set_node_event(&This->node, EVENTID_CONTEXTMENU, &v);
}
static HRESULT WINAPI HTMLElement2_get_oncontextmenu(IHTMLElement2 *iface, VARIANT *p)
{
HTMLElement *This = impl_from_IHTMLElement2(iface);
- FIXME("(%p)->(%p)\n", This, p);
- return E_NOTIMPL;
+
+ TRACE("(%p)->(%p)\n", This, p);
+
+ return get_node_event(&This->node, EVENTID_CONTEXTMENU, p);
}
static HRESULT WINAPI HTMLElement2_insertAdjacentElement(IHTMLElement2 *iface, BSTR where,
More information about the wine-cvs
mailing list