开发者

C# Change Global Mouse Cursor

开发者 https://www.devze.com 2023-01-11 11:37 出处:网络
I have a form with a Transparency-key color, where I\'m doing a global mouse hook for the right click.

I have a form with a Transparency-key color, where I'm doing a global mouse hook for the right click.

Until there everything is okay, but since the form is transparent, the mouse cursor is 开发者_开发知识库changing according to what is behind the form.

Is there any way to change the global mouse cursor?


Yup, that's how transparency works. Not just to the eye of the user, also to what the mouse sees from its left eye. Has to work that way, major user confusion if it didn't, no option to change it.

The workaround is to show a fake version of the desktop. A screen shot. Just what the ever popular Windows Snipping Tool does. Sample code is in this thread.

0

精彩评论

暂无评论...
验证码 换一张
取 消