Do not receive event arguments in the IHTMLElement event handler

I added a callback to the IHTMLElement instance, but when IDispatch :: Invoke is called for the event, there are never any arguments (i.e. pDispParams-> cArgs and pDispParams-> cNamedArgs are always 0). For example, I am adding a callback for the onmouseup event. From what I can tell, the callback for this event should get a MouseEvent object. It's right? If so, what do I need to do to make this happen?

This is used by MSHTML for IE 6 sp2 (or better) on Windows XP Service Pack 2 (SP2).

+3
source share
1 answer

DOM, onmouseup, event (IHTMLWindow2::event)

, IHTMLElement document, IHTMLDocument. IHTMLDocument2, parentWindow. IHTMLWindow2 event, . .

+6

Source: https://habr.com/ru/post/1697279/


All Articles