SFML community forums

Help => Window => Topic started by: ghiboz on November 13, 2008, 12:22:36 pm

Title: manage WndProc Callback
Post by: ghiboz on November 13, 2008, 12:22:36 pm
Hi, I need to manage my own callback, so I need to obtain the UINT uMsg, WPARAM wParam, LPARAM lParam...
is possible to handle this without modifying the SFML code?
thanks
Title: manage WndProc Callback
Post by: Wizzard on November 13, 2008, 12:37:20 pm
Create your own window if you want access to OS specific variables.

You can still construct sf::Window using a WindowHandle (http://www.sfml-dev.org/documentation/1.3/classsf_1_1Window.htm#ef6c45b1d53ed4a884ccb9c609d2456a).
Title: manage WndProc Callback
Post by: Laurent on November 13, 2008, 02:02:14 pm
Yep, constructing a SFML Window with the handle of an existing Win32 window is the cleanest solution. SFML will be able to do its job without altering your own event callback.

But if what you need is a feature which is not implemented in SFML, you can also tell us more about it ;)
Title: manage WndProc Callback
Post by: ghiboz on November 13, 2008, 02:30:45 pm
Quote from: "Wizzard"
Create your own window if you want access to OS specific variables.

You can still construct sf::Window using a WindowHandle (http://www.sfml-dev.org/documentation/1.3/classsf_1_1Window.htm#ef6c45b1d53ed4a884ccb9c609d2456a).


thanks mate!