ListView MultiSelect Dragging Events 
Author Message
 ListView MultiSelect Dragging Events

I'm having trouble in accurately trapping
itemclick events because of the MS COMDLG32.OCX
ListView control's capacity to select items by
mouse-down-dragging in the leftmost column (I've
also seen this selection technique described as
"Sweep-Selecting" or "Rectangle Selecting").

Rather than iterate through every item in my
listview to see what is selected, I'd like to
trap the item click events and add/remove them
from an internal collection or array. PROBLEM:
When the user does this kind of mouse-down-drag
selecting in the leftmost column (you must place
the mouse pointer to the right of the text in
that column, then hold down the left mouse button
and drag to multi-select) I get item click events
as new list items fall within the drag, BUT if
during the same drag the user de-selects some of
those selected list items, nothing fires. (Plus,
when the user releases the left mouse button, no
mouse-up or click event fires for me to at least
take a look at what is selected. Though not
really the point at hand, since I STILL want to
use just the item click events to determine what
is selected, rather than iterating through all

I saw an API call to detect the beginning of a
drag and drop event by using a message hook to
detect the LVN_BEGINDRAG message, but this does
not appear to be the same case, especially if I
disable the OLEDragDrop options in the listview.

Plus I gather from other postings that the
ListView offers no API or otherwise method to get
an inventory of the indexes of all selected items
in one step.

So what it comes down to is this . . . How to
disable that mouse-down-drag selection of list
items, . . . OR . . . how to get notification of
DE-selection of a list item during such a
selection technique?

Sent via http://www.*-*-*.com/
Before you buy.

Fri, 19 Jul 2002 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. ListView MultiSelect Drag Events

2. ListView MultiSelect Drag Events

3. ListView MultiSelect Drag Events

4. Listview drag and drop bug in icon mode when multiselect=true

5. Listview 6.0 does not generate MouseUp event when performing multiselect

6. Drag-drop events don't trigger in listview

7. Dragged items not selected after drag & drop operation in multiselect listview

8. Is it true that a ListView drags one and a listbox drags many

9. How to drag-drop MultiSelect list items?

10. Drag an item of Listview to another position of the same ListView

11. Dragging from ListView to ListView or TreeView

12. Dragging from ListView to ListView or TreeView


Powered by phpBB® Forum Software