开发者

Pressing F10 causes WM_SETCURSOR message

开发者 https://www.devze.com 2023-03-27 22:30 出处:网络
I have found in my WinAPI app that WM_SETCURSOR is caused not only by mouse mo开发者_C百科vement, but also by pressing F10 key. How can be this explained and is there way to disable this behavior?I ha

I have found in my WinAPI app that WM_SETCURSOR is caused not only by mouse mo开发者_C百科vement, but also by pressing F10 key. How can be this explained and is there way to disable this behavior?


I have a theory regarding why the message is sent at all: Showing or activating the window menu could change what is being displayed under the mouse cursor. The mouse cursor now might be wrong with respect to what is underneath (as WM_SETCURSOR normally is only generated when the mouse moves). The system knows this and generates a WM_SETCURSOR to update the mouse cursor and make it consistent with the changed display.

If this is the case then I doubt that you can disable this behavior.

0

精彩评论

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

关注公众号