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

Thread: ListCtrl

  1. #1
    Join Date
    Apr 1999
    Posts
    4

    ListCtrl



    I want to set an image in the 3rd and 5th columns of my list control, however if I use the small image list the icon appears next to the 1st entry and not the one I want. Can anyone suggest what to do here.

  2. #2
    Join Date
    Jan 2000
    Location
    Colombo, Sri Lanka
    Posts
    11

    Re: ListCtrl

    Hi Trevor,

    You could overcome your problem by using CListCtrl::SetItem member function to set the individual item's properties, rather than using CListCtrl::SetImageList.

    Good Luck


  3. #3
    Join Date
    Aug 1999
    Location
    Germany, Munich
    Posts
    148

    Re: ListCtrl

    ... and you've set the style LVS_EX_SUBITEMIMAGES and your COMCTRL32 version is >= 4.7?
    Then you should be able to set the item images in other columns via SetItem.

    HTH, Jens


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