teho
February 21st, 2006, 04:32 AM
I have added an image to a listView with size 79x110. When I receive an event in DrawItem the event->Bounds.Width and Height is 119x131. Why is it so bigger and where does the extra 40w and 21h come from?
I cant find the logic behind it, it does not make sense with margins (all 3) or other parameters.
I am thinking about writing all ListView display in OnPaint/DrawItem, but GetItemAt will show wrong item if I cant get this sorted out. Or I have to override GetItemAt as well?
- Terje
I cant find the logic behind it, it does not make sense with margins (all 3) or other parameters.
I am thinking about writing all ListView display in OnPaint/DrawItem, but GetItemAt will show wrong item if I cant get this sorted out. Or I have to override GetItemAt as well?
- Terje