Report item width of items in TreeView via NM_CUSTOMDRAW?

51 Views Asked by At

Is there a WM_MEASUREITEM type item for custom drawing treeview items via NM_CUSTOMDRAW? I'd like to be able to report the width the item will actually be once I paint it in the post paint so a horizontal scrollbar doesn't show up when not needed (because I truncate the text with a ...).

Thanks.

1

There are 1 best solutions below

0
On

AFAIK, there is no equivalent of WM_MEASUREITEM for a TreeView control.