From fdb43c6d9a2645c0eaa2503b241d5bd4b68ac4a3 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 19 Mar 2008 17:11:56 -0700 Subject: [PATCH] comctl32: correct listview hittest check to include the state rect --- dlls/comctl32/listview.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 524d845..706e92b 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -6256,7 +6256,10 @@ static INT LISTVIEW_HitTest(const LISTVIEW_INFO *infoPtr, LPLVHITTESTINFO lpht, if (uView == LVS_REPORT) rcBounds = rcBox; else - UnionRect(&rcBounds, &rcIcon, &rcLabel); + { + UnionRect(&rcBounds, &rcIcon, &rcLabel); + UnionRect(&rcBounds, &rcBounds, &rcState); + } TRACE("rcBounds=%s\n", wine_dbgstr_rect(&rcBounds)); if (!PtInRect(&rcBounds, opt)) return -1; -- 1.5.2.5