Module: wine Branch: master Commit: 74f2f09295175fdf813e2808eadd5934e18c71d2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=74f2f09295175fdf813e2808ea...
Author: Lei Zhang thestig@google.com Date: Wed Mar 19 17:11:56 2008 -0700
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;