Nikolay Sivov : comctl32/listview: Fix NM_CLICK notification when clicking on checkboxes.

Alexandre Julliard julliard at winehq.org
Wed Dec 5 15:49:01 CST 2018


Module: wine
Branch: master
Commit: e6a91103a0027cb206ce276ae4095f83d57604ac
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=e6a91103a0027cb206ce276ae4095f83d57604ac

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Wed Dec  5 12:49:02 2018 +0300

comctl32/listview: Fix NM_CLICK notification when clicking on checkboxes.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/comctl32/listview.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index c5978b3..1230c55 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -10238,7 +10238,9 @@ static LRESULT LISTVIEW_LButtonDown(LISTVIEW_INFO *infoPtr, WORD wKey, INT x, IN
   {
     if ((infoPtr->dwLvExStyle & LVS_EX_CHECKBOXES) && (lvHitTestInfo.flags & LVHT_ONITEMSTATEICON))
     {
+        notify_click(infoPtr, NM_CLICK, &lvHitTestInfo);
         toggle_checkbox_state(infoPtr, nItem);
+        infoPtr->bLButtonDown = FALSE;
         return 0;
     }
 




More information about the wine-cvs mailing list