Owner-drawn listview row height VS2005

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anyone know of a simple method to allow you to change the row height of
an owner-drawn listview control in .NET 2.0 (VS2005) ?

Thanks in advance

Steve
 
Steve,
Does anyone know of a simple method to allow you to change the row height of
an owner-drawn listview control in .NET 2.0 (VS2005) ?

Increasing the control's font size?


Mattias
 
Mattias,

Increasing the font size doesn't work for owner-drawn controls.

The listview exposes DrawItem and DrawSubItems events, while processing
these events increasing the font size has no effect.

Potentially I want each row to have a different height and therefore the
font size would not suit my requirements.

Steve
 
A ListView only has one height for all rows. A limitation inherited from
the Win32 control.
 
Joel,

Thanks for the response.

I was hoping that there would be some way to get around this limitation.

Perhaps one day MS will provide true managed controls instead of wrapping
the Win32 controls.

Steve
 
Back
Top