C language > Beginner questions

Hiding the cursor

(1/1)

rob:
Is there a way to hide the cursor? I found how to change what it looks like but not how to hide it.

CLR:
Hi.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/resources/cursors/cursorreference/cursorfunctions/showcursor.asp

rob:
Thanks. I'm trying the make it so the cursor is hidden inside the client area of the window and shown outside the client area, but it's not working correctly. My code looks like this:

--- Code: ---
case WM_NCMOUSELEAVE:
ShowCursor(FALSE);
break;
case WM_NCMOUSEMOVE:
ShowCursor(TRUE);
break;
case WM_MOUSEMOVE:
ShowCursor(FALSE);
break;

--- End code ---


Edit: I noticed it works, but theres about a 1 second delay. Any ideas on how to fix this would be appreciated.

Navigation

[0] Message Index

Go to full version