This documentation is archived and is not being maintained.


Handles (at the element identified by elemName) an event identified by dispid.

DHTML_EVENT_ELEMENT(dispid, elemName, memberFxn )



The dispatch ID of the event to be handled.


An LPCWSTR holding the ID of the HTML element sourcing the event.


The handler function for the event.

Use this macro to add an entry to the DHTML event map in your class.

If this macro is used to handle nonbubbling events, the source of the event will be the element identified by elemName.

If this macro is used to handle bubbling events, the element identified by elemName may not be the source of the event (the source could be any element contained by elemName).