JJ,
> 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.
I'm afraid that the/my problem already shows itself when doing the first
selection and than clicking a subitem column (to effect a change al-la OE6
with its "ignore" (spectacle icon) column). I'm confident it will do the
same on a second selection (without my mouse having left the listview
controls window).
Another "funny" one : Select a few rows (using shift-click) and than do a
ctrl-click afterwards (selecting a new or deselecting a currently selected
row). After that there is no way to click anywhere (on a subitem or
otherwise) to effect a change without either loosing the selection
(shift-click) or unselecting the row you click (ctrl-click) and having to
click it again to select it again. Fun when you want to toggle something
in all of those rows ...
I already tried to fight the selection mechanism by capturing
LVN_ITEMCHANGING and in certain cases disallowing a change*, but than
strange stuff started to happen when I continued ctrl-clicking rows.
* a problem in itself, 'cause multiple changes (selected, focussed) can
occur at the same time, and it seems to be an all-or-nothing rejection.
Currently I've chosen to ignore, in the listviews NM_CLICK notification
code, the ctrl/shift click on a subitem if its done on an (just switched to)
unselected row. It makes sure that if a change is made its made on all rows
at the same time.
... I might include a check to see if the clicked row is the only one
selected, and than effect a non-ctrl/shift click too.
I must say, I really enjoy working with those basic, freely configurable
controls. /s
Regards,
Rudy Wieser