views:

443

answers:

2

Is it possible for items in a WIn32 TreeView control to have variable heights when using NM_CUSTOMDRAW?

Right now, I can successfully select variable sized fonts in the dc in NM_CUSTOMDRAW, but the item texts get clipped.

+1  A: 

You need to set the height of each item using the iIntegral member of the TVITEMEX structure that you specify when you insert the item.

MrZebra
A: 

Thanks...can I change it after an item is added?