Windows multiple instances and bringing the window to the front

P

Paul J. Lucas

OK, I have my own native win32 Java launcher and it works great.
It prevents multiple instances from being launched. If the user
double-clicks on the .exe and it detects that it's a secondary
instance, it just quits.

What I would like to do, however, is send a message to the
first instance to tell it to bring its window to the front.
The problem is that the windows it creates are created on the
Java side, not the native Windows side.

So, from the native side when my launcher receives a message,
can it get a native HWND handle to the heavy-weight window
backing the front-most Java window and bring it to the front?
If so, how?

- Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top