You can receive notification of the following events in your C++ code.
MSHTML Element Events
Event name C++ #define for the event onabort DISPID_HTMLELEMENTEVENTS_ONABORT onafterupdate DISPID_HTMLELEMENTEVENTS_ONAFTERUPDATE onbeforecopy DISPID_HTMLELEMENTEVENTS_ONBEFORECOPY onbeforecut DISPID_HTMLELEMENTEVENTS_ONBEFORECUT onbeforeeditfocus DISPID_HTMLELEMENTEVENTS_ONBEFOREEDITFOCUS onbeforepaste DISPID_HTMLELEMENTEVENTS_ONBEFOREPASTE onbeforeupdate DISPID_HTMLELEMENTEVENTS_ONBEFOREUPDATE onblur DISPID_HTMLELEMENTEVENTS_ONBLUR oncellchange DISPID_HTMLELEMENTEVENTS_ONCELLCHANGE onclick DISPID_HTMLELEMENTEVENTS_ONCLICK oncopy DISPID_HTMLELEMENTEVENTS_ONCOPY oncut DISPID_HTMLELEMENTEVENTS_ONCUT ondataavailable DISPID_HTMLELEMENTEVENTS_ONDATAAVAILABLE ondatasetchanged DISPID_HTMLELEMENTEVENTS_ONDATASETCHANGED ondatasetcomplete DISPID_HTMLELEMENTEVENTS_ONDATASETCOMPLETE ondblclick DISPID_HTMLELEMENTEVENTS_ONDBLCLICK ondrag DISPID_HTMLELEMENTEVENTS_ONDRAG ondragend DISPID_HTMLELEMENTEVENTS_ONDRAGEND ondragenter DISPID_HTMLELEMENTEVENTS_ONDRAGENTER ondragleave DISPID_HTMLELEMENTEVENTS_ONDRAGLEAVE ondragover DISPID_HTMLELEMENTEVENTS_ONDRAGOVER ondragstart DISPID_HTMLELEMENTEVENTS_ONDRAGSTART ondrop DISPID_HTMLELEMENTEVENTS_ONDROP onerror DISPID_HTMLELEMENTEVENTS_ONERROR onerrorupdate DISPID_HTMLELEMENTEVENTS_ONERRORUPDATE onfilterchange DISPID_HTMLELEMENTEVENTS_ONFILTERCHANGE onfocus DISPID_HTMLELEMENTEVENTS_ONFOCUS onhelp DISPID_HTMLELEMENTEVENTS_ONHELP onkeydown DISPID_HTMLELEMENTEVENTS_ONKEYDOWN onkeypress DISPID_HTMLELEMENTEVENTS_ONKEYPRESS onkeyup DISPID_HTMLELEMENTEVENTS_ONKEYUP onload DISPID_HTMLELEMENTEVENTS_ONLOAD onlosecapture DISPID_HTMLELEMENTEVENTS_ONLOSECAPTURE onmousedown DISPID_HTMLELEMENTEVENTS_ONMOUSEDOWN onmousemove DISPID_HTMLELEMENTEVENTS_ONMOUSEMOVE onmouseout DISPID_HTMLELEMENTEVENTS_ONMOUSEOUT onmouseover DISPID_HTMLELEMENTEVENTS_ONMOUSEOVER onmouseout DISPID_HTMLELEMENTEVENTS_ONMOUSEOUT onmouseup DISPID_HTMLELEMENTEVENTS_ONMOUSEUP onpaste DISPID_HTMLELEMENTEVENTS_ONPASTE onpropertychange DISPID_HTMLELEMENTEVENTS_ONPROPERTYCHANGE onreadystatechange DISPID_HTMLELEMENTEVENTS_ONREADYSTATECHANGE onresize DISPID_HTMLELEMENTEVENTS_ONRESIZE onrowenter DISPID_HTMLELEMENTEVENTS_ONROWENTER onrowexit DISPID_HTMLELEMENTEVENTS_ONROWEXIT onrowsdelete DISPID_HTMLELEMENTEVENTS_ONROWSDELETE onrowsinserted DISPID_HTMLELEMENTEVENTS_ONROWSINSERTED onscroll DISPID_HTMLELEMENTEVENTS_ONSCROLL onselectstart DISPID_HTMLELEMENTEVENTS_ONSELECTSTART
MSHTML Document Events
Document event name C++ #define for the event onafterupdate DISPID_HTMLDOCUMENTEVENTS_ONAFTERUPDATE onbeforeupdate DISPID_HTMLDOCUMENTEVENTS_ONBEFOREUPDATE oncellchange DISPID_HTMLDOCUMENTEVENTS_ONCELLCHANGE onclick DISPID_HTMLDOCUMENTEVENTS_ONCLICK ondataavailable DISPID_HTMLDOCUMENTEVENTS_ONDATAAVAILABLE ondatasetchanged DISPID_HTMLDOCUMENTEVENTS_ONDATASETCHANGED ondatasetcomplete DISPID_HTMLDOCUMENTEVENTS_ONDATASETCOMPLETE ondblclick DISPID_HTMLDOCUMENTEVENTS_ONDBLCLICK ondragstart DISPID_HTMLDOCUMENTEVENTS_ONDRAGSTART onerrorupdate DISPID_HTMLDOCUMENTEVENTS_ONERRORUPDATE onhelp DISPID_HTMLDOCUMENTEVENTS_ONHELP onkeydown DISPID_HTMLDOCUMENTEVENTS_ONKEYDOWN onkeypress DISPID_HTMLDOCUMENTEVENTS_ONKEYPRESS onkeyup DISPID_HTMLDOCUMENTEVENTS_ONKEYUP onmousedown DISPID_HTMLDOCUMENTEVENTS_ONMOUSEDOWN onmousemove DISPID_HTMLDOCUMENTEVENTS_ONMOUSEMOVE onmouseout DISPID_HTMLDOCUMENTEVENTS_ONMOUSEOUT onmouseover DISPID_HTMLDOCUMENTEVENTS_ONMOUSEOVER onmouseup DISPID_HTMLDOCUMENTEVENTS_ONMOUSEUP onpropertychange DISPID_HTMLDOCUMENTEVENTS_ONPROPERTYCHANGE onreadystatechange DISPID_HTMLDOCUMENTEVENTS_ONREADYSTATECHANGE onrowenter DISPID_HTMLDOCUMENTEVENTS_ONROWENTER onrowexit DISPID_HTMLDOCUMENTEVENTS_ONROWEXIT onrowsdelete DISPID_HTMLDOCUMENTEVENTS_ONROWSDELETE onrowsinserted DISPID_HTMLDOCUMENTEVENTS_ONROWSINSERTED onselectstart DISPID_HTMLDOCUMENTEVENTS_ONSELECTSTART onstop DISPID_HTMLDOCUMENTEVENTS_ONSTOP
MSHTML Element Events2
Event name C++ #define for the event onabort DISPID_HTMLELEMENTEVENTS2_ONABORT onafterupdate DISPID_HTMLELEMENTEVENTS2_ONAFTERUPDATE onbeforecopy DISPID_HTMLELEMENTEVENTS2_ONBEFORECOPY onbeforecut DISPID_HTMLELEMENTEVENTS2_ONBEFORECUT onbeforeeditfocus DISPID_HTMLELEMENTEVENTS2_ONBEFOREEDITFOCUS onbeforepaste DISPID_HTMLELEMENTEVENTS2_ONBEFOREPASTE onbeforeupdate DISPID_HTMLELEMENTEVENTS2_ONBEFOREUPDATE onblur DISPID_HTMLELEMENTEVENTS2_ONBLUR oncellchange DISPID_HTMLELEMENTEVENTS2_ONCELLCHANGE onclick DISPID_HTMLELEMENTEVENTS2_ONCLICK oncopy DISPID_HTMLELEMENTEVENTS2_ONCOPY oncut DISPID_HTMLELEMENTEVENTS2_ONCUT ondataavailable DISPID_HTMLELEMENTEVENTS2_ONDATAAVAILABLE ondatasetchanged DISPID_HTMLELEMENTEVENTS2_ONDATASETCHANGED ondatasetcomplete DISPID_HTMLELEMENTEVENTS2_ONDATASETCOMPLETE ondblclick DISPID_HTMLELEMENTEVENTS2_ONDBLCLICK ondrag DISPID_HTMLELEMENTEVENTS2_ONDRAG ondragend DISPID_HTMLELEMENTEVENTS2_ONDRAGEND ondragenter DISPID_HTMLELEMENTEVENTS2_ONDRAGENTER ondragleave DISPID_HTMLELEMENTEVENTS2_ONDRAGLEAVE ondragover DISPID_HTMLELEMENTEVENTS2_ONDRAGOVER ondragstart DISPID_HTMLELEMENTEVENTS2_ONDRAGSTART ondrop DISPID_HTMLELEMENTEVENTS2_ONDROP onerror DISPID_HTMLELEMENTEVENTS2_ONERROR onerrorupdate DISPID_HTMLELEMENTEVENTS2_ONERRORUPDATE onfilterchange DISPID_HTMLELEMENTEVENTS2_ONFILTERCHANGE onfocus DISPID_HTMLELEMENTEVENTS2_ONFOCUS onhelp DISPID_HTMLELEMENTEVENTS2_ONHELP onkeydown DISPID_HTMLELEMENTEVENTS2_ONKEYDOWN onkeypress DISPID_HTMLELEMENTEVENTS2_ONKEYPRESS onkeyup DISPID_HTMLELEMENTEVENTS2_ONKEYUP onload DISPID_HTMLELEMENTEVENTS2_ONLOAD onlosecapture DISPID_HTMLELEMENTEVENTS2_ONLOSECAPTURE onmousedown DISPID_HTMLELEMENTEVENTS2_ONMOUSEDOWN onmousemove DISPID_HTMLELEMENTEVENTS2_ONMOUSEMOVE onmouseout DISPID_HTMLELEMENTEVENTS2_ONMOUSEOUT onmouseover DISPID_HTMLELEMENTEVENTS2_ONMOUSEOVER onmouseout DISPID_HTMLELEMENTEVENTS2_ONMOUSEOUT onmouseup DISPID_HTMLELEMENTEVENTS2_ONMOUSEUP onpaste DISPID_HTMLELEMENTEVENTS2_ONPASTE onpropertychange DISPID_HTMLELEMENTEVENTS2_ONPROPERTYCHANGE onreadystatechange DISPID_HTMLELEMENTEVENTS2_ONREADYSTATECHANGE onresize DISPID_HTMLELEMENTEVENTS2_ONRESIZE onrowenter DISPID_HTMLELEMENTEVENTS2_ONROWENTER onrowexit DISPID_HTMLELEMENTEVENTS2_ONROWEXIT onrowsdelete DISPID_HTMLELEMENTEVENTS2_ONROWSDELETE onrowsinserted DISPID_HTMLELEMENTEVENTS2_ONROWSINSERTED onscroll DISPID_HTMLELEMENTEVENTS2_ONSCROLL onselectstart DISPID_HTMLELEMENTEVENTS2_ONSELECTSTART
Interface Information
Implementation Mshtml.dll Inherits from None Header and IDL files Mshtml.h, Mshtml.idl Minimum availability Internet Explorer 5 Minimum operating systems Windows 95, Windows NT 4.0