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.