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.

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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.

Leave a Comment

Please sign in to add a comment. Not a member? Join today