CListCtrl - Highlighting all of the selected row
-
Hi all, I'm writing a simple dialog with a listbox in "report" mode. My problem is that in order for a user to select an item in the list, (s)he has to click on the 1st column in the list. Also, this will only highlight the first column and not the rest of the row. This is functional ofcourse but it would be nice the have the whole row highlited. Any help would be greatly appreciated :-) Mark
-
Hi all, I'm writing a simple dialog with a listbox in "report" mode. My problem is that in order for a user to select an item in the list, (s)he has to click on the 1st column in the list. Also, this will only highlight the first column and not the rest of the row. This is functional ofcourse but it would be nice the have the whole row highlited. Any help would be greatly appreciated :-) Mark
DWORD dwStyle = ListView_GetExtendedListViewStyle (m_myListCtrl.GetSafeHwnd());
dwStyle |= LVS_EX_FULLROWSELECT;
ListView_SetExtendedListViewStyle (m_myListCtrl.GetSafeHwnd(), dwStyle);/ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com