Hello all,
I've created a listview with a few columns which allows multiple rows to be selected.
The thing is that I would like to be able to select a few rows and than
click subitems without loosing that selection.
I've been looking if I could ignore the LVN_SELECTIONCHANGED notification, but that one doesn't even return a value. And as the NM_CLICK notification comes in after all the changes its not usable either.
tl;dr:
Does anyone know how to keep a set of rows selected when clicking a subitem
?
Or maybe the other way around : can I limit the selection of rows to only when clicking the main item row ?
Regards,
Rudy Wieser
Hold CTRL key for selecting more items without deselecting existing
item(s).
Hold CTRL key for selecting more items without deselecting existing
item(s).
I forgot to explicitily mention that I'm using the listview in LVS_REPORT style.
Something "funny" :
Using a basic listview (no LVS_EX_FULLROWSELECT) you *cannot* select rows other than by clicking on the main items column, but clicking /anywhere/ on
a row *will* drop the (carefull) selection you made. Go figure ...
There might be a reason for doing it that way, but I'm not yet been able to figure it out.
Regards,
Rudy Wieser
Might want to try injecting CTRL key event at the correct time.
e.g. when mouse enters the ListView and when there's existing
selection.
Hello all,
I've created a listview with a few columns which allows multiple rows to be selected.
The thing is that I would like to be able to select a few rows and than click subitems without loosing that selection.
I've been looking if I could ignore the LVN_SELECTIONCHANGED notification, but that one doesn't even return a value. And as the NM_CLICK notification comes in after all the changes its not usable either.
tl;dr:
Does anyone know how to keep a set of rows selected when clicking a subitem ?
Or maybe the other way around : can I limit the selection of rows to only when clicking the main item row ?
Would it be possible to subclass the control and intercept that message?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 379 |
Nodes: | 16 (2 / 14) |
Uptime: | 41:49:00 |
Calls: | 8,141 |
Calls today: | 4 |
Files: | 13,085 |
Messages: | 5,857,792 |