John Crowe
John Crowe

Reputation:

Variable height items in Win32 TreeView using NM_CUSTOMDRAW

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.

Upvotes: 1

Views: 1014

Answers (1)

Zebra North
Zebra North

Reputation: 11492

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.

Upvotes: 2

Related Questions