Windows multiple instances and bringing the window to the front

Discussion in 'Java' started by Paul J. Lucas, Nov 20, 2005.

  1. 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
     
    Paul J. Lucas, Nov 20, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Frank D. Greco
    Replies:
    0
    Views:
    356
    Frank D. Greco
    Feb 15, 2005
  2. John Wohlbier
    Replies:
    2
    Views:
    397
    Josiah Carlson
    Feb 22, 2004
  3. Replies:
    8
    Views:
    488
    James Stroud
    Jan 29, 2009
  4. Simon Wigzell
    Replies:
    4
    Views:
    319
    Simon Wigzell
    Sep 15, 2003
  5. rajendra

    Bringing a window to foreground.

    rajendra, Dec 28, 2006, in forum: Perl Misc
    Replies:
    0
    Views:
    116
    rajendra
    Dec 28, 2006
Loading...

Share This Page