SFML community forums

Help => Window => Topic started by: pilehead on June 05, 2011, 07:02:23 pm

Title: How to get a window handle?
Post by: pilehead on June 05, 2011, 07:02:23 pm
Hello!
I have created a renderwindow in my program with App(sf::VideoMode(800, 600, 32), "SFML Window");
How can i get its handle (i need it to use in some winapi functions)?
Title: How to get a window handle?
Post by: Laurent on June 05, 2011, 07:03:32 pm
In SFML 1.6 there's no clean way to do it, you must use FindWindow or something similar.

In SFML 2 there's a new function that returns the OS-specific handle of the window.
Title: How to get a window handle?
Post by: pilehead on June 05, 2011, 07:46:03 pm
thank you!