listview entire row select

listview entire row select

Hi,
I have a listview control in my application.By default only the first column element gets highlighted want to enable an entire row and not just the first element.
ret = sendmessage (hwnd,LVM_SETEXTENDEDLISTVIEWSTYLE,LVS_EX_FULLROWSELECT,1)
sets the extended listview style to enable entire row select. This function returns a 0.I have compaq visual fortran version 6.6. and Comctl32.ocx version 6.0.81.5. I will be glad is someone could help me.Thanks,
Archana.

publicaciones de 3 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

My reading of the docs is that the proper usage is

ret = SendMessage (hwnd,LVM_SETEXTENDEDLISTVIEWSTYLE,LVS_EX_FULLROWSELECT,LVS_EX_FULLROWSELECT)

i.e. _EX_ constants are bit fields (powers of two), so to set a style you have to set mask (wParam) and style (lParam) to the same value.

Jugoslav www.xeffort.com

Hi,
Thanks, it worked. Now I am able to select an entire row of elements.
Archana.

Deje un comentario

Por favor inicie sesión para agregar un comentario. ¿No es socio? Únase ya