comctl32: Recompute the text width if necessary.
Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3ed6ba579e
commit
c7c8994f35
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue