changing mouse cursor
I'm making a simple game with Open Gl And Windows. My game needs to be able to change the mouse pointer depending on where abouts it is but I cant find out how to do it. Please Help...:
Heres what i've got:
//boring code above/..
if (mpos.y < 5) //if mouse at top screen I want to change to arrow upwards
Y -= 0.25f; //move screen UP
//here change mouse cursor to data/cursors/up_arrow.ico - or bmp.
//I think i have to change wc.hCursor = LoadCursor(NULL, ???);
thanks for your help !
try the SetCursor() function:
I was meaning change the cursor to one in the file data/icons/test.ico. How do you load a cursor and then use it?