how can I highlight the whole row of a report when I click anywhere on the row
Printable View
how can I highlight the whole row of a report when I click anywhere on the row
Send the list control a message like this:
m_ListCtrl.SendMessage(LVM_SETEXTENDEDLISTVIEWSTYLE, 0, LVS_EX_FULLROWSELECT);
This will give you full row highlighting.
Add the line
ListView_SetExtendedListViewStyle(m_mylistctrl.m_hWnd,LVS_EX_FULLROWSELECT);
where you are populating the List Control