how do you get the index of a row in a list control
-
hi every one am stuck, this is what i want to do. i have a Report styled list control with 5 columns and i have a double clicked event handler for the list control; so i want to get the index of a row once i double click on it, which list control function do i interrogate, e.g if it was a list box , i would do this; CListBox m_Listbx; .... ... int nSel = m_ListBox.GetCurSel(); now in CListCtrl what function is analogous to CListBox's GetCurSel() and how is it used.. thanks;
-
hi every one am stuck, this is what i want to do. i have a Report styled list control with 5 columns and i have a double clicked event handler for the list control; so i want to get the index of a row once i double click on it, which list control function do i interrogate, e.g if it was a list box , i would do this; CListBox m_Listbx; .... ... int nSel = m_ListBox.GetCurSel(); now in CListCtrl what function is analogous to CListBox's GetCurSel() and how is it used.. thanks;
GetNextItem(-1,LVNI_SELECTED);
. -
hi every one am stuck, this is what i want to do. i have a Report styled list control with 5 columns and i have a double clicked event handler for the list control; so i want to get the index of a row once i double click on it, which list control function do i interrogate, e.g if it was a list box , i would do this; CListBox m_Listbx; .... ... int nSel = m_ListBox.GetCurSel(); now in CListCtrl what function is analogous to CListBox's GetCurSel() and how is it used.. thanks;