SFML community forums

Help => Window => Topic started by: rogerlevy on December 23, 2010, 05:52:21 pm

Title: Force window focus / send to top?
Post by: rogerlevy on December 23, 2010, 05:52:21 pm
Is there a function to do this?
Title: Force window focus / send to top?
Post by: Hiura on December 23, 2010, 07:51:25 pm
no.
Title: Force window focus / send to top?
Post by: rogerlevy 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 );