Announcement

Collapse
No announcement yet.

ListView multi select question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • ListView multi select question

    If I have a listview that allows multi select, I know the user can do a ctrl-click to deselect any one of a group. What if I want to review the selections made and programmatically deselect specific rows.

    Bob Mechler

  • #2
    Listview_SetItemState
    Michael Mattias
    Tal Systems (retired)
    Port Washington WI USA
    [email protected]
    http://www.talsystems.com

    Comment


    • #3
      Like this:

      Code:
                  tLVI.STATE    = 0
                  tLVI.stateMask = %LVIS_FOCUSED OR %LVIS_SELECTED
                CONTROL SEND CBHNDL,%LV_SYSLISTVIEW32_1, %LVM_SETITEMSTATE, 0&, VARPTR(tLVI)
      Seems to work.

      Bob Mechler

      Comment

      Working...
      X