Click to See Complete Forum and Search --> : hiding the global cursor


leojose
June 4th, 2005, 04:43 AM
Hi all,

I have been working on this problem for quite some time but am unable to fine any good solutions.
My aim is to detect mouse events (regardless of what window it is working on) and then hidethe cursor whenever the mouse performs a click & drag.
To monitor the mouse events I created a hook using LowLevelMouseProc. But when I try to hide it by ShowCursor(FALSE) or SetCursor(NULL), it just doesn't happen :(
Can somebody suggest me other methods to hide a cursor, maybe make it transparent or just take the 'cursor image' behind an application etc.

PS: I would like to use the cursor as it is in a hidden mode so techniques like shifting the cursor location or confiing it a small section etc. won't be of any help.

Thanks n Regards

golanshahar
June 4th, 2005, 07:30 AM
read this thread.
http://www.codeguru.com/forum/showthread.php?t=342423

if i helped dont forget to rate :-)
Cheers

leojose
June 4th, 2005, 07:55 AM
Hi golanshahar,

I did read that thread (that is why i added the PS after my message:)) My problem is exactly similar to his (newdrug), but the exact solution is missing in that thread.

If you can really help me or for that matter anybody, i won't mind rating it!

golanshahar
June 4th, 2005, 09:11 AM
so why dont u use the SetSystemCursor Api to hide the cursor?
i think its good enough from the hook u will get the events and when you want to hide it, simply ::SetSystemCurosr to a transparent mouse pointer.

Cheers