How to Disable/Hide Mouse Cursor ?
-
Hi I have asked the same question but I didn't get any satisfactory answer, so I am again posting it here.... I have a dialog based MFC application in which I have used Microsoft Web Browser ActiveX control through which I allow user to navigate the sites. Now if I want to hide cursor, I have used SetCursor(NULL) and also tried ShowCursor(FALSE) but the problem is : When I move my mouse with little bit of speed, it shows cursor and then again hides...what seems to be the problem, HOw to overcome it ? Or is there a way to disable mouse ? So I don't have problem of hiding cursor. Thankx in Advance Amarelia Maehsh Gujarat India
-
Hi I have asked the same question but I didn't get any satisfactory answer, so I am again posting it here.... I have a dialog based MFC application in which I have used Microsoft Web Browser ActiveX control through which I allow user to navigate the sites. Now if I want to hide cursor, I have used SetCursor(NULL) and also tried ShowCursor(FALSE) but the problem is : When I move my mouse with little bit of speed, it shows cursor and then again hides...what seems to be the problem, HOw to overcome it ? Or is there a way to disable mouse ? So I don't have problem of hiding cursor. Thankx in Advance Amarelia Maehsh Gujarat India
Since your trying to take complete control over the system, you should act like it. You have to be firm. I'd say set up a system wide hook listening to WM_MOUSEMOVE messages, and just throw them all away. The cursor should no longer move. Look at SetWindowsHookEx(), remember your message pump must reside outside your application in a DLL if it's going to be global.