Overlap Java Window with Native Window - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Overlap Java Window with Native Window

Hallo!

I am using JNA to get native access to my Win32 platform. I want to get a native window ownership over a Java Window by overlapping. I did not find any method to do it.

My search so far got:
* There is a native method called CreateWindowEx(...) but it creates me a new hWnd and not for my existing Java Window.
* Another option is to add my Java Window as a child, but then it will be clipped all the time.

All I need is that my Java Window is in the correct z-order and moved relatively with the native window, nevertheless what I do with it.

* Option: Create own Listener / Event -> but I think, there shall be a better native solution.

Best regards,
yadaddy.
Sign In or Register to comment.