Getting ListView items in C# from SysListView32 using SendMessage
From: Dave Rich (davidr1ch_at_yahoo.co.uk)
Date: 11/23/04
- Next message: Jon Skeet [C# MVP]: "Re: How good an encryption algorithm is this?"
- Previous message: MR: "Finding subclasses"
- Next in thread: Mattias Sjögren: "Re: Getting ListView items in C# from SysListView32 using SendMessage"
- Reply: Mattias Sjögren: "Re: Getting ListView items in C# from SysListView32 using SendMessage"
- Messages sorted by: [ date ] [ thread ]
Date: 23 Nov 2004 09:45:32 -0800
Hi
I am trying to access the listview items from a SysListView32 control
in C#. I am using LVM.FINDITEM and LVFINDINFO through SendMessage to
try to get the text from each column in the item (it is a multi-column
list view).
I am using the PARTIAL flag to try to find an item starting with a
certain letter, that i am setting on the LVFINDINFO.psz. I am always
being returned -1 (or 0) as the index and am not quite sure what i am
doing wrong - i hate Win32! Could someone be able to outline the steps
i need to take, given the handle to the syslistview32 control, to get
an item from a multi-column listview and find out the text in each
column for that item?
Many thanks
Dave
- Next message: Jon Skeet [C# MVP]: "Re: How good an encryption algorithm is this?"
- Previous message: MR: "Finding subclasses"
- Next in thread: Mattias Sjögren: "Re: Getting ListView items in C# from SysListView32 using SendMessage"
- Reply: Mattias Sjögren: "Re: Getting ListView items in C# from SysListView32 using SendMessage"
- Messages sorted by: [ date ] [ thread ]