Re: Get the WM_XBUTTONDOWN message in Chromium
Posted: Wed Jun 26, 2019 8:29 am
Try the TChromium.OnRenderCompMsg event and set aHandled to TRUE for the WM_XBUTTONDOWN message.
The TChromium.OnRenderCompMsg event has a known bug and it stops working after the second TChromium.LoadURL call.
If TChromium.OnRenderCompMsg works the first time and your application needs to load several URLs try using TChromium.RenderCompHWND with SetWindowLongPtr to use a custom procedure to intercept the WM_XBUTTONDOWN message.
The TChromium.OnRenderCompMsg event has a known bug and it stops working after the second TChromium.LoadURL call.
If TChromium.OnRenderCompMsg works the first time and your application needs to load several URLs try using TChromium.RenderCompHWND with SetWindowLongPtr to use a custom procedure to intercept the WM_XBUTTONDOWN message.