|
-
February 21st, 2006, 05:32 AM
#1
Image size and DrawItem event->Bounds?
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
Last edited by teho; February 21st, 2006 at 07:51 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|