Ö
Özden Irmak
Hello,
I've derived from ListBox control to create a special control. This
control's DrawItem property is OwnerDrawVariable. When the items are get
drawn, OnMeasureItem is called once but only once. No matter you resize the
control, etc. will not cause this event to be re-called again.
I have to recalculate the Item heights when the width of the control is
changed but this seems not to be possible? Is this a bug? Anyworkaround?
Thanks in advance,
Özden
I've derived from ListBox control to create a special control. This
control's DrawItem property is OwnerDrawVariable. When the items are get
drawn, OnMeasureItem is called once but only once. No matter you resize the
control, etc. will not cause this event to be re-called again.
I have to recalculate the Item heights when the width of the control is
changed but this seems not to be possible? Is this a bug? Anyworkaround?
Thanks in advance,
Özden