Always recompute an item's text width in the case of text callbacks
and when its attributes change.
This commit is contained in:
parent
985ae970fb
commit
12f7a36132
|
@ -844,9 +844,6 @@ TREEVIEW_ComputeTextWidth(TREEVIEW_INFO *infoPtr, TREEVIEW_ITEM *item, HDC hDC)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item->textWidth != 0 && !(item->callbackMask & TVIF_TEXT))
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (hDC != 0)
|
if (hDC != 0)
|
||||||
{
|
{
|
||||||
hdc = hDC;
|
hdc = hDC;
|
||||||
|
|
Loading…
Reference in New Issue