Announcement

Collapse
No announcement yet.

Listview select

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

  • Listview select

    In a DDT listview with multiple items selected, I need to retrieve the position of all selected items (I need to delete them) I've tried LVM_FindItem, but I always get "1" returned as position, also if I select another item. (I set LV_FindInfo.Flags to %LVFI_PARAM, LV_FindInfo.lParam To %LVIS_SELECTED)

    I can use Listview_GetItemstate, but then I have to check the complete view (5000+ items usually). If possible i'd like to enumerate only the selected items (usually 5-10 items)
    -------------
    Kind regards,
    Peter.

    [This message has been edited by Peter Lameijn (edited May 23, 2000).]
    Regards,
    Peter

    "Simplicity is a prerequisite for reliability"

  • #2
    %LVM_GETNEXTITEM will do what you need to do. It can search for selected items.

    -- Eric

    ------------------
    Perfect Sync: Perfect Sync Development Tools
    Email: mailto:[email protected][email protected]</A>

    "Not my circus, not my monkeys."

    Comment


    • #3
      Thanks! (missed that one...)

      ------------------
      Kind regards,
      Peter.
      Regards,
      Peter

      "Simplicity is a prerequisite for reliability"

      Comment

      Working...
      X