make highlight cover entire length of all columns in CListCtrl
-
how do you make the selected item highlight the full, entire length of all the columns in a CListCtrl. this is hard to explain... please look at the attached picture to see what I am talking about.
Either ListView_SetExtendedListViewStyle(m_hWndYourListViewHwnd,LVS_EX_FULLROWSELECT); or SendMessage( m_hWndListviewhwnd, LVM_SETEXTENDEDLISTVIEWSTYLE, 0, (LPARAM)LVS_EX_FULLROWSELECT ); ================== The original message was: how do you make the selected item highlight the full, entire length of all the columns
in a CListCtrl. this is hard to explain... please look at the attached picture to see what I
am talking about. -
Either ListView_SetExtendedListViewStyle(m_hWndYourListViewHwnd,LVS_EX_FULLROWSELECT); or SendMessage( m_hWndListviewhwnd, LVM_SETEXTENDEDLISTVIEWSTYLE, 0, (LPARAM)LVS_EX_FULLROWSELECT ); ================== The original message was: how do you make the selected item highlight the full, entire length of all the columns
in a CListCtrl. this is hard to explain... please look at the attached picture to see what I
am talking about.... or CListCtrl& ctlList = GetListCtrl(); ctlList.SetExtendedStyle( LVS_EX_FULLROWSELECT );
-
how do you make the selected item highlight the full, entire length of all the columns in a CListCtrl. this is hard to explain... please look at the attached picture to see what I am talking about.
You need to call SetExtendedStyle with the LVS_EX_FULLROWSELECT after the window has been created. A good place to do this may be when you add the columns to the list control object. It requires Version 4.70 of common controls dll which is available with IE3+. Hope it helps.