Huw Davies : comctl32: Recompute the text width if necessary.
Alexandre Julliard
julliard at winehq.org
Tue Dec 6 16:27:45 CST 2016
Module: wine
Branch: master
Commit: c7c8994f3579e624c1b0ceb353ab6c0208881e47
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c7c8994f3579e624c1b0ceb353ab6c0208881e47
Author: Huw Davies <huw at codeweavers.com>
Date: Tue Dec 6 10:25:27 2016 +0000
comctl32: Recompute the text width if necessary.
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/comctl32/treeview.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c
index 0a155bb..74206bd 100644
--- a/dlls/comctl32/treeview.c
+++ b/dlls/comctl32/treeview.c
@@ -3703,6 +3703,9 @@ TREEVIEW_HitTest(const TREEVIEW_INFO *infoPtr, LPTVHITTESTINFO lpht)
return NULL;
}
+ if (!item->textWidth)
+ TREEVIEW_ComputeTextWidth(infoPtr, item, 0);
+
if (x >= item->textOffset + item->textWidth)
{
lpht->flags = TVHT_ONITEMRIGHT;
More information about the wine-cvs
mailing list