CListCtrl (MFC) converts MouseWheel event into "selected item changed" notification

266 Views Asked by At

When trying to implement the handling of SHIFT+MouseWheel events for a CListCtrl to scroll horizontally, I was surprised, that on SHIFT+MouseWheel_UP the CListCtrl item under the mouse cursor got selected, that the selection changed.

The WM_MOUSEWHEEL message turned into a LVN_ITEMCHANGED notification.

I tried to reproduce the behavior in a smaller C++ project and yes - SHIFT+MouseWheel_UP selected the item in the CListCtrl right undr the mouse cursor.

Does anybody knows this behavior or reasons for this behavior? May eventually a style or an extended style influence this behavior?

Thanks in advance!

0

There are 0 best solutions below