MFC/VC++ WebView2 Mouse click interception
Budget: $30 – $250 AUD
I've got a legacy VS2008 application that requires WebView2 integration, the older IE implementation is no longer viable. To accomplish this I've created and ActiveX control that wraps up the WebView2 API in VS2019. The parent VS2008 CDialog supports multiple instances of this ActiveX control in a grid via CreateControl(). InvokeHelper() is used for simple URL and visibility commands.
All works and functions as expected. However, I need to intercept a double mouse click message to toggle full screen for the ActiveX control over which it was performed.
Problem being I just don't seem to be able to intercept this message. The ActiveX control/WebView2 appears to intercept the WM_LBUTTONDBLCLK message first and simply dismiss it. My project is to provide advice and code snippets on how to fix the problem. WebView2 - AddScriptToExecuteOnDucumentCreated() appears to be the solution entry point.
All works and functions as expected. However, I need to intercept a double mouse click message to toggle full screen for the ActiveX control over which it was performed.
Problem being I just don't seem to be able to intercept this message. The ActiveX control/WebView2 appears to intercept the WM_LBUTTONDBLCLK message first and simply dismiss it. My project is to provide advice and code snippets on how to fix the problem. WebView2 - AddScriptToExecuteOnDucumentCreated() appears to be the solution entry point.