Changing row Font in listctrl, changes width but not height
-
I have a listctrl where i can set any row to use a new font, the main problem i had was that on changing the font the rows/columns would not resize correctly to take account of the new text extents. After searching on this site and then looking on MSDN, i now send a CCM_SETVERSION 5 message to the listctrl before i add any items. This now makes the column widths resize correctly, but the row heights are still wrong. I've spent many hours trying to find a way to fix this but have made no progress. Hoping you can give me some ideas. BTW it's a NW_CUSTOMDRAW listctrl not an ownerdraw. ScorpioMidget
-
I have a listctrl where i can set any row to use a new font, the main problem i had was that on changing the font the rows/columns would not resize correctly to take account of the new text extents. After searching on this site and then looking on MSDN, i now send a CCM_SETVERSION 5 message to the listctrl before i add any items. This now makes the column widths resize correctly, but the row heights are still wrong. I've spent many hours trying to find a way to fix this but have made no progress. Hoping you can give me some ideas. BTW it's a NW_CUSTOMDRAW listctrl not an ownerdraw. ScorpioMidget
If you can't get it to work, create an imagelist without images and then assing that imagelist to your listctrl, the rows will have the Images height... I suppose that you will be able to readapt the heights as you want using this trick... Hope this helps...