|
VC++ Win32 Function
ListVIew::SelectedItem()
The Function Returns the Index on the Selected Item in a listview Control
int ListView::SelectedItem()
{
int x = SendMessage(hWndLV,LVM_GETHOTITEM,0,0);
x = SendMessage(hWndLV, LVM_GETNEXTITEM, -1, MAKELPARAM (LVNI_SELECTED, 0));
return x;
}
|
|