1
Window / MFC and SFML Window problem
« on: March 25, 2014, 06:08:00 am »
Hi everyone.
I have a CDialog with SFML RenderWindow created in a separated class. Everything is working OK, with the exception of two things.
1. Because I want to keep the CDialog events instead of the SFML I have problem that I loose the focus for mouse wheel event. I can use the mouse and the buttons, but the mouse wheel event is not triggered until I use the right button and click on the menu on the Windows bar where the programs icon is. And after I click outside of the program I loose the focus again. Is there a workaround this?
2. How can I resize SFML window. I use custom events to resize the CDialog window using SetWindowPos().
I have a CDialog with SFML RenderWindow created in a separated class. Everything is working OK, with the exception of two things.
1. Because I want to keep the CDialog events instead of the SFML I have problem that I loose the focus for mouse wheel event. I can use the mouse and the buttons, but the mouse wheel event is not triggered until I use the right button and click on the menu on the Windows bar where the programs icon is. And after I click outside of the program I loose the focus again. Is there a workaround this?
2. How can I resize SFML window. I use custom events to resize the CDialog window using SetWindowPos().