Hi,

How I can allow only selection of single object in listview? By default it seems that multiple object selection is turned on.

Thanks, Sami
Posted on 2002-05-24 14:01:10 by SamiP
use the LVS_SINGLESEL style
Posted on 2002-05-24 14:38:00 by smurf
While where on the subject of listview. Dose anyone know how to make it heighlight an entire line in report view and not just the main item?
Posted on 2002-05-24 15:03:07 by Kudos
Smurf:
Thank you! I think I was looked all the listview messages and styles from MSDN... but obviously I'm not, because I missed that.

Kudos:
Use LVS_EX_FULLROWSELECT style.
Posted on 2002-05-24 15:14:52 by SamiP
thanx SamiP
Posted on 2002-05-24 15:23:54 by Kudos
Hmmm, while we're on listviews, I've had to dig for several defines for constants and structures that the masm7 version of windows.inc doesn't include. Understandably so, since it's hard to keep up on new commctrl versions.

I finally found a handy little ref that had at least some of the missing lv*_ constants, might help prevent someone from pulling a few hairs out of their head...

Definitions of the ListView API Members

http://www.mvps.org/vbnet/code/comctl/lvmembers.htm


Kayaker
Posted on 2002-05-24 16:41:37 by Kayaker