Link to home
Start Free TrialLog in
Avatar of imtiazahmad
imtiazahmad

asked on

ListView item selection

How can I select a full row of a list view control in VC++5.0?
Avatar of load_o_crap
load_o_crap

int nStyleEx = LVS_EX_FULLROWSELECT  |  LVS_EX_HEADERDRAGDROP;
      m_listView.SendMessage(LVM_SETEXTENDEDLISTVIEWSTYLE, nStyleEx, nStyleEx);


m_listView is the member variable of your listCtrl... this will only work if you have IE3 and above...

Remember to call CListView.GetListCtrl() first to get to the listCtrl inside the list view.

hope this helps
ASKER CERTIFIED SOLUTION
Avatar of kkarunakar
kkarunakar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for ur acceptance of my answer!!!
Regards
Keshav