Freigeben über


DHTML_EVENT_ELEMENT

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

DHTML_EVENT_ELEMENT(dispid, elemName, memberFxn )

Parameters

  • dispid
    The dispatch ID of the event to be handled.

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

  • memberFxn
    The handler function for the event.

Remarks

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).

Requirements

Header: afxdhtml.h

See Also

Reference

CDHtmlDialog Class

Concepts

MFC Macros and Globals

Other Resources

DHTML Event Maps