How to select the entire row in CListControl
C / C++ / MFC
5
Posts
5
Posters
0
Views
1
Watching
-
DWORD dwstyle = m_myListControl.SendMessage(LVM_GETEXTENDEDLISTVIEWSTYLE,0,0); dwstyle |= LVS_EX_FULLROWSELECT; m_myListControl.SendMessage(LVM_SETEXTENDEDLISTVIEWSTYLE, 0, dwstyle); this is the hard way, but in VC5 it was the only way to get it work properly. hope it helps Greetings Jens
-
try this DWORD dwStyle = m_listctrl.SendMessage(LVM_GETEXTENDEDLISTVIEWSTYLE); dwStyle |= LVS_EX_FULLROWSELECT; m_listctrl.SendMessage(LVM_SETEXTENDEDLISTVIEWSTYLE, 0, (LPARAM)dwStyle); i hope this works:) ahmed
-
use API ListView_SetExtendedListViewStyle(handle of ur listctrl, LVS_EX_FULLROWSELECT) or CListCtrl Member Function SetExtendedStyle(LVS_EX_FULLROWSELECT) CodeTheDreams();