سؤال

Is there a way, even a dirty hack, to avoid receiving WM_MOUSEMOVE events in a WH_MOUSE_LL hook? I'm interested only in wheel rotations and buttons. The performance cost of receiving WM_MOUSEMOVE is unnacceptable in my scenario.

I cannot use WH_MOUSE.

هل كانت مفيدة؟

المحلول

There is no way to tell a hook to not receive particular messages. When you hook the mouse, especially a low level hook, you receive everything the mouse does.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top