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

Author Topic: manage WndProc Callback  (Read 3723 times)

0 Members and 1 Guest are viewing this topic.

ghiboz

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • http://www.ghiboz.com
manage WndProc Callback
« 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

Wizzard

  • Full Member
  • ***
  • Posts: 213
    • View Profile
manage WndProc Callback
« Reply #1 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
manage WndProc Callback
« Reply #2 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 ;)
Laurent Gomila - SFML developer

ghiboz

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • http://www.ghiboz.com
manage WndProc Callback
« Reply #3 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.


thanks mate!

 

anything