As you know, CEF3 doesn't expose mouse events when you use it in "normal mode" and another user called
Winexcel suggested that it could be useful to intercept all the missing Windows messages.
CEF3 creates a few child components inside TCEFWindowParent and the TChromium.OnBrowserCompMsg, TChromium.OnWidgetCompMsg and TChromium.OnRenderCompMsg events are used to intercept the messages to those components.
The
MiniBrowser demo uses one of those events to show the mouse coordinates but there's a known bug and this only works for the first web page loaded from the address edit box.
What you get in those events are all the Windows messages sent to those components and perhaps some custom CEF3 messages.
None of those events are supported by CEF3 and even if you find a fix for the bug commented previously, it would be risky to use them in a commercial app.
It's recommended to use alternative ways to get mouse clicks :
- Using TChromium in OSR mode. Take a look at the SimpleOSRBrowser demo.
- Using TChromium in normal mode but adding some JavaScript code that calls a JavaScript extension every time you click in the document. The JSRTTIExtensiondemo has almost all the code you need for this.