Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#35 ListBox::Select does not work with Multisel==(1 || 2 )

closed-fixed
Robert May
None
1
2006-10-15
2005-04-06
Kevin Myers
No

When multiselect is set as an option for a listbox,
select does not work.

Discussion

  • Kevin Myers
    Kevin Myers
    2005-04-06

    Logged In: YES
    user_id=1254181

    It appears this is related to Select using LB_SECURTSEL
    which only works with single selection Listboxes. For
    multiselect list boxes LB_SETSEL must be used.

    http://msdn.microsoft.com/library/default.asp?url=/library/en-
    us/shellcc/platform/commctls/listboxes/listboxreference/listbo
    xmessages/lb_setcursel.asp

     
  • Kevin Myers
    Kevin Myers
    2005-04-07

    Logged In: YES
    user_id=1254181

    Looks like SetSel takes care of this.

     
  • Kevin Myers
    Kevin Myers
    2005-04-07

    • status: open --> open-invalid
     
  • Robert May
    Robert May
    2005-12-01

    • priority: 5 --> 1
    • assigned_to: nobody --> robertemay
    • status: open-invalid --> open-fixed
     
  • Robert May
    Robert May
    2005-12-01

    Logged In: YES
    user_id=674651

    I updated the documentation to make it clear that Select()
    is only for single-selection listboxes, and to point to
    SetSel() for multiple-selection listboxes. This will make
    it into the 1.04 release.

    Regards,
    Rob.

     
  • Robert May
    Robert May
    2006-10-15

    • status: open-fixed --> closed-fixed