Commit c7c8994f authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

comctl32: Recompute the text width if necessary.

parent 3ed6ba57
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment