I am writing a C# application that needs to extract data from a ListView control that resides in an external process.
I already have the code to extract data and get the number of items in a ListView but I need the equivalent of the following for sub items:
public int GetListViewRowCount()
{
if (list_view_handle != null)
{
return (int)UnManagedMethods.SendMessage(list_view_handle,
(int)UnManagedMethods.W32_LVM.LVM_GETITEMCOUNT,
IntPtr.Zero, IntPtr.Zero);
}
else return 0;
}
I'm basically looking for the functionality provided by a LVM_GETSUBITEMCOUNT type message.