Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

How to use IDocumentEvent, IDOMEvent and IEventTarget in C++

$
0
0

I have a MFC application (CDialog) controlling an IE11 window (page loaded).

HTML Source:

<html><head><script type="text/javascript">
function upperCase(x)
{
	var y=document.getElementById(x).value
	document.getElementById(x).value=y.toUpperCase()
}</script></head><body>

Enter your name: <input type="text" id="fname" onchange="upperCase(this.id)"></body></html>

In IE8 I can execute OnChange with createEventObject and fireevent. But the same code can't be used on IE11.

I know for IE11 an event is created with IDocumentEvent::createEvent and fired with IEventTarget::dispatchEvent.

But how to use them? C++ sample code not found in MSDN.


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>