api listview - finding subitem clicked
I've got a listview using no column header, report, single select, and full row select styles. The column data is occupied by a single character and is 20px wide; each row can contain similar values, so searching for a specified value isn't feasible.
Is there a function to determine which subitem a user has clicked on? I can find the selected row, but I'm just not sure how I'd go about finding the column. ListView_GetSelectedColumn seemed promising, but it always returns 0.
I'm looking to find both the row and col by index pos.
Code:
case WM_NOTIFY :
if(((LPNMHDR)lParam)->code == NM_CLICK) {
int index = SendMessage(hndListV, LVM_GETNEXTITEM, -1, LVNI_SELECTED);
// need help finding the subitem
}
break;
Any ideas would be greatly appreciated.