Re: ListView: How programmatically set multiline selection?



I have tried to remove highlighting by:
SendMessage lvPhList.hwnd, ByVal LVM_SETEXTENDEDLISTVIEWSTYLE, ByVal
LVS_EX_FULLROWSELECT, ByVal 0
before the next row becomes active and turn it it on again, but that
approach does not work.
If I know how to remove existing highlightning from the row then it will
solve my problem.
Jack

"Jack" <replyto@it> wrote in message
news:OVtLMmmZHHA.208@xxxxxxxxxxxxxxxxxxxxxxx
When software is in automatic mode:
each row which is active at that time is highlighted.
When the next row becomes active then both rows become highlighted, but I
need to highlight only one row at the time..
After some time all processed rows are highlighted and that looks ugly!
That is the reason I do not want to have multiline option selected.
Jack


"Jan Hyde" <StellaDrinker@xxxxxxxxxxxxxxxxxxx> wrote in message
news:mo8gv2hu4pb61609gfrb7rho14ij9t8rbm@xxxxxxxxxx
"Jack" <replyto@it>'s wild thoughts were released on Wed, 14
Mar 2007 12:24:49 -0500 bearing the following fruit:

Depending on the situation I need to have both functionalities.
Mostly I do not need multiline option when program runs automatically.
But when user decides to intervene and for example wants to delete some
rows
I want to provide multiline selection functionality.
Hope that explains,

Not really. From that explination I can't see why you don't
just have multiline switched on all the time.

J

Jack

"Jan Hyde" <StellaDrinker@xxxxxxxxxxxxxxxxxxx> wrote in message
news:89ffv2luqdad0ct38r43qpu0mnc1otvedq@xxxxxxxxxx
"Jack" <replyto@it>'s wild thoughts were released on Tue, 13
Mar 2007 21:44:07 -0500 bearing the following fruit:

ListView in lvReport mode.
I need to make a multiline selection when for example Shift button is
pressed.
Is it possible to do that without selecting 'Multiline' option in LV
properties?
Jack


Can I ask why?

Also, are you trying to highlight multiple items without
allowing the user the ability to do the same?

I suspect there may be a better way to achieve your goal -
check items, add an icon to items, change the colour etc








.