mshtml: Added IHTMLEventObj::get_button implementation.
This commit is contained in:
parent
7f7ea0e116
commit
3ffef98dca
|
@ -396,8 +396,23 @@ static HRESULT WINAPI HTMLEventObj_get_keyCode(IHTMLEventObj *iface, LONG *p)
|
|||
static HRESULT WINAPI HTMLEventObj_get_button(IHTMLEventObj *iface, LONG *p)
|
||||
{
|
||||
HTMLEventObj *This = HTMLEVENTOBJ_THIS(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
PRUint16 button = 0;
|
||||
|
||||
TRACE("(%p)->(%p)\n", This, p);
|
||||
|
||||
if(This->nsevent) {
|
||||
nsIDOMMouseEvent *mouse_event;
|
||||
nsresult nsres;
|
||||
|
||||
nsres = nsIDOMEvent_QueryInterface(This->nsevent, &IID_nsIDOMMouseEvent, (void**)&mouse_event);
|
||||
if(NS_SUCCEEDED(nsres)) {
|
||||
nsIDOMMouseEvent_GetButton(mouse_event, &button);
|
||||
nsIDOMMouseEvent_Release(mouse_event);
|
||||
}
|
||||
}
|
||||
|
||||
*p = button;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLEventObj_get_type(IHTMLEventObj *iface, BSTR *p)
|
||||
|
|
Loading…
Reference in New Issue