Jacek Caban : mshtml: Added IHTMLElement::put_onmouseover implementation.

Alexandre Julliard julliard at winehq.org
Mon Oct 13 06:37:13 CDT 2008


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Fri Oct 10 15:46:08 2008 -0500

mshtml: Added IHTMLElement::put_onmouseover implementation.

---

 dlls/mshtml/htmlelem.c  |    6 ++++--
 dlls/mshtml/htmlevent.c |   12 ++++++++----
 dlls/mshtml/htmlevent.h |    1 +
 3 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/dlls/mshtml/htmlelem.c b/dlls/mshtml/htmlelem.c
index 60fd574..1052e6c 100644
--- a/dlls/mshtml/htmlelem.c
+++ b/dlls/mshtml/htmlelem.c
@@ -501,8 +501,10 @@ static HRESULT WINAPI HTMLElement_get_onmouseout(IHTMLElement *iface, VARIANT *p
 static HRESULT WINAPI HTMLElement_put_onmouseover(IHTMLElement *iface, VARIANT v)
 {
     HTMLElement *This = HTMLELEM_THIS(iface);
-    FIXME("(%p)->()\n", This);
-    return E_NOTIMPL;
+
+    TRACE("(%p)->()\n", This);
+
+    return set_node_event(&This->node, EVENTID_MOUSEOVER, &v);
 }
 
 static HRESULT WINAPI HTMLElement_get_onmouseover(IHTMLElement *iface, VARIANT *p)
diff --git a/dlls/mshtml/htmlevent.c b/dlls/mshtml/htmlevent.c
index d72b936..2b05eb7 100644
--- a/dlls/mshtml/htmlevent.c
+++ b/dlls/mshtml/htmlevent.c
@@ -48,6 +48,9 @@ static const WCHAR onkeyupW[] = {'o','n','k','e','y','u','p',0};
 static const WCHAR loadW[] = {'l','o','a','d',0};
 static const WCHAR onloadW[] = {'o','n','l','o','a','d',0};
 
+static const WCHAR mouseoverW[] = {'m','o','u','s','e','o','v','e','r',0};
+static const WCHAR onmouseoverW[] = {'o','n','m','o','u','s','e','o','v','e','r',0};
+
 typedef struct {
     LPCWSTR name;
     LPCWSTR attr_name;
@@ -57,10 +60,11 @@ typedef struct {
 #define EVENT_DEFAULTLISTENER    0x0001
 
 static const event_info_t event_info[] = {
-    {changeW,   onchangeW,   EVENT_DEFAULTLISTENER},
-    {clickW,    onclickW,    EVENT_DEFAULTLISTENER},
-    {keyupW,    onkeyupW,    EVENT_DEFAULTLISTENER},
-    {loadW,     onloadW,     0}
+    {changeW,       onchangeW,       EVENT_DEFAULTLISTENER},
+    {clickW,        onclickW,        EVENT_DEFAULTLISTENER},
+    {keyupW,        onkeyupW,        EVENT_DEFAULTLISTENER},
+    {loadW,         onloadW,         0},
+    {mouseoverW,    onmouseoverW,    EVENT_DEFAULTLISTENER}
 };
 
 eventid_t str_to_eid(LPCWSTR str)
diff --git a/dlls/mshtml/htmlevent.h b/dlls/mshtml/htmlevent.h
index adc7692..7b01dd7 100644
--- a/dlls/mshtml/htmlevent.h
+++ b/dlls/mshtml/htmlevent.h
@@ -21,6 +21,7 @@ typedef enum {
     EVENTID_CLICK,
     EVENTID_KEYUP,
     EVENTID_LOAD,
+    EVENTID_MOUSEOVER,
     EVENTID_LAST
 } eventid_t;
 




More information about the wine-cvs mailing list