Found a solution but i'm not completely satisfied.
So, here is the solution :
window_handle=FindWindow(NULL,TEXT("SFML Window"));
if(window_handle==0)
std::cout<<"error";
and,
HCURSOR c;
switch(t)
{
case Cursor::WAIT :
c=LoadCursor(NULL, IDC_WAIT);
break;
case Cursor::HAND :
c=LoadCursor(NULL, IDC_HAND);
break;
case Cursor::NORMAL :
c=LoadCursor(NULL, IDC_ARROW);
break;
case Cursor::TEXT_EDIT :
c=LoadCursor(NULL, IDC_IBEAM);
break;
}
if(!c)
std::cout<<"no cursor";
else
SetClassLong(window_handle, GCL_HCURSOR, (LONG)c);
However, I do not like the way a get the window handle. Is there a better way ?
Can I do something similar with linux (if so, please lead me in the right direction)?