reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

commit 96d3e44901ff40bca8f0a0de5045ebcae0bbc4dc
parent 0536b8034e03ba01dcb24d67104927734e48ce82
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Sun, 29 Oct 2017 05:00:37 -0700

listview: improve icon hit detection on Windows

Diffstat:
Msrc/listview.cpp | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/listview.cpp b/src/listview.cpp @@ -388,8 +388,10 @@ int ListView::itemUnderMouse(bool *overIcon) const ScreenToClient(handle(), &info.pt); ListView_HitTest(handle(), &info); - if(overIcon) - *overIcon = info.flags & (LVHT_ONITEMICON | LVHT_ONITEMSTATEICON); + if(overIcon) { + *overIcon = (info.flags & (LVHT_ONITEMICON | LVHT_ONITEMSTATEICON)) != 0 && + (info.flags & LVHT_ONITEMLABEL) == 0; + } return translateBack(info.iItem); }