Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Force window focus / send to top?  (Read 3542 times)

0 Members and 1 Guest are viewing this topic.

rogerlevy

  • Newbie
  • *
  • Posts: 15
    • View Profile
Force window focus / send to top?
« on: December 23, 2010, 05:52:21 pm »
Is there a function to do this?

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Force window focus / send to top?
« Reply #1 on: December 23, 2010, 07:51:25 pm »
no.
SFML / OS X developer

rogerlevy

  • Newbie
  • *
  • Posts: 15
    • View Profile
Force window focus / send to top?
« Reply #2 on: December 23, 2010, 08:40:30 pm »
OK, thanks.  I looked around the docs, but I just wanted to be sure.

I solved my problem (on Windows) by doing this:


Code: [Select]
window = sfWindow_Create( vmode, "asdf", flags, settings );
myhandle = GetActiveWindow();  // Win32 API

...

SetForeGroundWindow( myhandle );