CListView Not cooperating...
-
Does anyone know how to force CListView to select an entire row when you click on an item... by this I mean i insert a certain number of items each with 3 subitems... i want the item AND its subitems to appear highlighted... Any help would be appreciated. Joseph Dempsey jdempsey@cox.rr.com Joseph.Dempsey@thermobio.com "Software Engineering is a race between the programmers, trying to make bigger and better fool-proof software, and the universe trying to make bigger fools. So far the Universe in winning." --anonymous
-
Does anyone know how to force CListView to select an entire row when you click on an item... by this I mean i insert a certain number of items each with 3 subitems... i want the item AND its subitems to appear highlighted... Any help would be appreciated. Joseph Dempsey jdempsey@cox.rr.com Joseph.Dempsey@thermobio.com "Software Engineering is a race between the programmers, trying to make bigger and better fool-proof software, and the universe trying to make bigger fools. So far the Universe in winning." --anonymous
Call the SetExtendedStyle function with LVS_EX_FULLROWSELECT as the parameter.
-
Call the SetExtendedStyle function with LVS_EX_FULLROWSELECT as the parameter.
I don't believe that will do the trick. I think the LVS_EX_FULLROWSELECT parameter only allows you to select a row by clicking anywhere on any column in that row, rather than on just the first column text. It won't actually highlight the row. To achieve the highlighting, you'll have to custom draw the control yourself, and you can find many examples of that on this site and on codeguru in the listcontrol sections. best of luck