Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Window
»
How to get a window handle?
Print
Pages: [
1
]
Author
Topic: How to get a window handle? (Read 1886 times)
0 Members and 2 Guests are viewing this topic.
pilehead
Newbie
Posts: 3
How to get a window handle?
«
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)?
Logged
Laurent
Administrator
Hero Member
Posts: 32498
How to get a window handle?
«
Reply #1 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.
Logged
Laurent Gomila - SFML developer
pilehead
Newbie
Posts: 3
How to get a window handle?
«
Reply #2 on:
June 05, 2011, 07:46:03 pm »
thank you!
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
Window
»
How to get a window handle?