Click to See Complete Forum and Search --> : CListCtrl highlighting


May 20th, 1999, 12:15 PM
how can I highlight the whole row of a report when I click anywhere on the row

May 20th, 1999, 01:34 PM
Send the list control a message like this:
m_ListCtrl.SendMessage(LVM_SETEXTENDEDLISTVIEWSTYLE, 0, LVS_EX_FULLROWSELECT);

This will give you full row highlighting.

Vicky
May 27th, 1999, 02:06 AM
Add the line
ListView_SetExtendedListViewStyle(m_mylistctrl.m_hWnd,LVS_EX_FULLROWSELECT);
where you are populating the List Control