Hello, everyone. I’d need some help with the Compose integration for my win32 application.
In my application I use special JNI code to capture mouse events using win32 hooking. The hook itself is associated with a particular native window described by handle that I get in the JNI using this code.
The argument here is an AWTWindow.
In the actual hook code contains the window handle over which a mouse event occured. The problem is that is this handle points to the SunAWTCanvas while my hook is associated with SunAWTFrame. I don’t have this problem in Swing version of the app though.
My questions are:
1. Is it possible to get the SunAWTCanvas handle using AWT JNI?
2. As a temporal workaround I try to find the parent window of the the mouse event window in the hook, i.e. I get the SunAWTFrame handle and get my hook. Are there any cornercases in this solution I should consider?
Any help is appreciated