1
Window / Re: Gain focus on a RenderWindow created with a HWND parameter
« on: March 04, 2015, 07:55:54 pm »
I have subclassed? (Not sure if that the correct term)
But I have a custom WndProc for my "view"
But I have a custom WndProc for my "view"
case WM_MOUSEACTIVATE:
{
Engine::Window.View.requestFocus();//Doesnt work
SetFocus(Engine::Window.viewport);//The same HWND that was used for the viewport
SetFocus(hWnd);//From the WndProc parameter hWnd
break;
}
the WM_MOUSEACTIVATE does get called, but am not sure how to give sfml renderwindow the "focus"
{
Engine::Window.View.requestFocus();//Doesnt work
SetFocus(Engine::Window.viewport);//The same HWND that was used for the viewport
SetFocus(hWnd);//From the WndProc parameter hWnd
break;
}