Select a line under any column in a CListCtrl ???
-
Hello to all programmers out there !!! I have a CListCtrl with 5 column headers and single select option. When I want to select a line I can only use the first header. How can I make it so that when I click on the last header (or any of them) the line gets selected ??? Thanx in advance for any help :) Have a nice day !
-
Hello to all programmers out there !!! I have a CListCtrl with 5 column headers and single select option. When I want to select a line I can only use the first header. How can I make it so that when I click on the last header (or any of them) the line gets selected ??? Thanx in advance for any help :) Have a nice day !
Set the full-row select style of the list control. Unfortunately, you can't set this in the dialog editor, so you have to do it with code: mylist.SetExtendedStyle ( LVS_EX_FULLROWSELECT ); You need v4.70 or greater of the common controls for this to work.