Owner Drawn ListView in C#

  • Thread starter Thread starter Duncan
  • Start date Start date
Duncan said:
If anyone knows how to do this. Thanks in advance,

1. First create flag

CreateParams cp = base.CreateParams;
cp.Style |= (int)ListViewStyles.LVS_OWNERDATA;


2. Specify number of total records
int result = WindowsFunction.SendMessage(this.Handle,
(int)ListViewMessages.LVM_SETITEMCOUNT, m_itemCount, 0);


3. Define this handler

QueryItemText += new QueryItemTextHandler(ListViewFieldHandler);


If you need any sample source , let me know.
Roger
 
Thanks heaps roger, life saver.

Yes if you have any samples please do mail it or post it.

my mail (e-mail address removed)

Thanks again.
 
Back
Top