I'm developping an application where I use an ownerdrawn listctrl. I know that OWNERDRAWNFIXED allows
only one unique height for all items, but is there somewhere a possibility to have different item heights?
There is an article from Zoran M.Todorovic (List control with separators) which is great except that it
would also need this feature of variable item height...
When setting the row height for the CListCtrl derived object in the MeasureItem
routine, you shouldn't use the lfHeight member of the LogFont structure.
This value is a logical point size value, not a physical pixels value.
With different screen resolutions and larger font values, the row height
will still be wrong. The following code shows an example for implementing the
MeasureItem routine that should work for all of these cases, and produces the
exact same height as the default implementation.