SetCursor reverts after a mouse move
Posted
by Joe Ludwig
on Stack Overflow
See other posts from Stack Overflow
or by Joe Ludwig
Published on 2008-10-03T22:32:55Z
Indexed on
2010/05/07
14:58 UTC
Read the original article
Hit count: 305
I am using SetCursor to set the system cursor to my own image. The code looks something like this:
// member on some class
HCURSOR _cursor;
// at init time
_cursor = LoadCursorFromFile("somefilename.cur");
// in some function
SetCursor(_cursor);
When I do this the cursor does change, but on the first mouse move message it changes back to the default system arrow cursor. This is the only code in the project that is setting the cursor. What do I need to do to make the cursor stay the way I set it?
© Stack Overflow or respective owner