Hi,
I am using sfml nearly for 3 years, and i love it=) I am not an active form member since i can find nearly all answers about sfml. Now i am stuck in a situation.
I moved my sfml window into a winform control, following the way described here:
http://en.sfml-dev.org/forums/index.php?topic=9141.0It works, i only had to cast hwnd like this (for those who might look for solution):
HWND hwnd = (HWND)(splitContainer1->Panel2->Handle.ToInt32());
After moving SFML RenderWindow into winControl, i didn't change the pollEvents function calls. I use them like this:
while (sfRenderWindow->pollEvent(event)){
switch (event.type){
case sf::Event::Closed:{
sfRenderWindow->close();
break;
}
case sf::Event::KeyPressed:{
break;
}...
But it gets the events mismatched. When i move the mouse, renderWindow gets a leftMouse press event i guess.
How i can prevent this, or what i did wrong, thanks