CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1

Threaded View

  1. #1
    Join Date
    Jan 2006
    Posts
    11

    Question 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
  •  





Click Here to Expand Forum to Full Width

Featured