listview entire row select

listview entire row select

Imagen de rjar

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.
Imagen de Jugoslav Dujic

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
Imagen de rjar

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

Inicie sesión para dejar un comentario.