CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2003
    Location
    nagpur for all
    Posts
    121

    Subitem selection in the CListCtrl

    Hi All,
    I am selecting subitems in listview(report type) ....but selection of subitem is not allowed till you click over or select the item(any) first.
    If any one knows sol.. please help me out.
    And after this problem...if i select the subitem....focus remains on the item and secondly, the selection of subitem is not proper....that is some part remains unselected. ..why?

    thanks
    dhani99
    have a nice day!

  2. #2
    use this style.

    SetExtendedStyle(LVS_EX_FULLROWSELECT );
    Best Api Monitor tool.
    Trace the target program automatically and monitor the parameters of all API and COM interfaces.

    Auto Debug for Windows 4.0
    Auto Debug for .Net
    http://www.autodebug.com/

  3. #3
    Join Date
    Sep 2003
    Location
    nagpur for all
    Posts
    121
    Hi,
    thanks for reply but ...it is not , what i want....
    I don't want full row to be selected...i want individual item selection. In that too.. i am able to select the subitem...but the problem is that the control doesn't allows me to select the subitem untill i select any one of the item.

    dhani99
    have a nice day!

  4. #4
    Join Date
    Sep 2003
    Posts
    90
    You will not selecting through but you want it to be selected programatically?

  5. #5
    Join Date
    Sep 2002
    Location
    14° 39'19.65"N / 121° 1'44.34"E
    Posts
    9,815
    Originally posted by dhani99
    thanks for reply but ...it is not , what i want....
    I don't want full row to be selected...i want individual item selection.
    The list control doesn't provide the possibility to select individual subitems (subitems are not really items, they're just some kind of additional label for an item). Have a look at the articles section for list controls, there are some articles which show how to implement subitem selection and editable subitems.

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