Commit a3a9a317 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Added IHTMLSelectElement::put_onchange implementation.

parent da8560bb
...@@ -35,6 +35,9 @@ struct event_target_t { ...@@ -35,6 +35,9 @@ struct event_target_t {
IDispatch *event_table[EVENTID_LAST]; IDispatch *event_table[EVENTID_LAST];
}; };
static const WCHAR changeW[] = {'c','h','a','n','g','e',0};
static const WCHAR onchangeW[] = {'o','n','c','h','a','n','g','e',0};
static const WCHAR clickW[] = {'c','l','i','c','k',0}; static const WCHAR clickW[] = {'c','l','i','c','k',0};
static const WCHAR onclickW[] = {'o','n','c','l','i','c','k',0}; static const WCHAR onclickW[] = {'o','n','c','l','i','c','k',0};
...@@ -53,6 +56,7 @@ typedef struct { ...@@ -53,6 +56,7 @@ typedef struct {
#define EVENT_DEFAULTLISTENER 0x0001 #define EVENT_DEFAULTLISTENER 0x0001
static const event_info_t event_info[] = { static const event_info_t event_info[] = {
{changeW, onchangeW, EVENT_DEFAULTLISTENER},
{clickW, onclickW, EVENT_DEFAULTLISTENER}, {clickW, onclickW, EVENT_DEFAULTLISTENER},
{keyupW, onkeyupW, EVENT_DEFAULTLISTENER}, {keyupW, onkeyupW, EVENT_DEFAULTLISTENER},
{loadW, onloadW, 0} {loadW, onloadW, 0}
......
...@@ -177,8 +177,10 @@ static HRESULT WINAPI HTMLSelectElement_get_options(IHTMLSelectElement *iface, I ...@@ -177,8 +177,10 @@ static HRESULT WINAPI HTMLSelectElement_get_options(IHTMLSelectElement *iface, I
static HRESULT WINAPI HTMLSelectElement_put_onchange(IHTMLSelectElement *iface, VARIANT v) static HRESULT WINAPI HTMLSelectElement_put_onchange(IHTMLSelectElement *iface, VARIANT v)
{ {
HTMLSelectElement *This = HTMLSELECT_THIS(iface); HTMLSelectElement *This = HTMLSELECT_THIS(iface);
FIXME("(%p)->()\n", This);
return E_NOTIMPL; TRACE("(%p)->()\n", This);
return set_node_event(&This->element.node, EVENTID_CHANGE, &v);
} }
static HRESULT WINAPI HTMLSelectElement_get_onchange(IHTMLSelectElement *iface, VARIANT *p) static HRESULT WINAPI HTMLSelectElement_get_onchange(IHTMLSelectElement *iface, VARIANT *p)
......
...@@ -99,6 +99,7 @@ typedef enum { ...@@ -99,6 +99,7 @@ typedef enum {
} tid_t; } tid_t;
typedef enum { typedef enum {
EVENTID_CHANGE,
EVENTID_CLICK, EVENTID_CLICK,
EVENTID_KEYUP, EVENTID_KEYUP,
EVENTID_LOAD, EVENTID_LOAD,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment