المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Capture and replace mouse cursor on the fly



C# Programming
02-06-2010, 11:40 PM
Hi All,

A bit of background on what and why I am trying to do this. I have a 3rd party c# component embedded in my form. The component controls the cursor when the mouse is over it. I can set different cursors for the component when I initialise it but they must be mono-chrome as this is all it can handle. The component also does not process right-click menu clicks, but I have managed to circumvent this using a mouse and keyboard hook to process these actions.
Ideally what I would like to do is something similar with the mouse cursor - ie trap when the component is changing it's cursor according to the action being performed then selectively repaint the cursors with my own versions. I really need to be able to listen for some sort of event being raised I think.

Does anyone know if this is even possible? Any code or links?

Many Thanks.