can anybody help me out.....
-
can anybody tell me how to fetch the value of a column in a particular row in the list control when i click anywhere on the row. i tried out this way TCHAR pszText[_MAX_PATH] LVITEM lvi={0}; lvi.mask=LVIF_Text; lvi.pszText=pszText lvi.cchTextMax=_MAX_PATH lvi.iItem=0; lvi.iItem=xc; listctrl.sendMessage(Lvm_GETITEM,(WPARAM)0,(LPARAM)(LPLVITEM)&lvi) but by using this code i am only able to fetch the first column value where as i want to fetch either the second or third column value. thanks in advance
-
can anybody tell me how to fetch the value of a column in a particular row in the list control when i click anywhere on the row. i tried out this way TCHAR pszText[_MAX_PATH] LVITEM lvi={0}; lvi.mask=LVIF_Text; lvi.pszText=pszText lvi.cchTextMax=_MAX_PATH lvi.iItem=0; lvi.iItem=xc; listctrl.sendMessage(Lvm_GETITEM,(WPARAM)0,(LPARAM)(LPLVITEM)&lvi) but by using this code i am only able to fetch the first column value where as i want to fetch either the second or third column value. thanks in advance
Try lvi.iSubItem = column number (one based). http://msdn2.microsoft.com/en-us/library/bb774760(VS.85).aspx[^]
- S 50 cups of coffee and you know it's on!