Note that the following enumeration is used during the CreateParams override.
It was converted directly from the definitions in the old WINUSER.H file.
#region ListView Style definitions
public enum
LVSDefs
{
LVS_ICON
=0x0000,
LVS_REPORT
=0x0001,
LVS_SMALLICON
=0x0002,
LVS_LIST
=0x0003,
LVS_TYPEMASK
=0x0003,
LVS_SINGLESEL
=0x0004,
LVS_SHOWSELALWAYS
=0x0008,
LVS_SORTASCENDING
=0x0010,
LVS_SORTDESCENDING
=0x0020,
LVS_SHAREIMAGELISTS
=0x0040,
LVS_NOLABELWRAP
=0x0080,
LVS_AUTOARRANGE
=0x0100,
LVS_EDITLABELS
=0x0200,
LVS_OWNERDATA
=0x1000,
LVS_NOSCROLL
=0x2000,
LVS_TYPESTYLEMASK
=0xfc00,
LVS_ALIGNTOP
=0x0000,
LVS_ALIGNLEFT
=0x0800,
LVS_ALIGNMASK
=0x0c00,
LVS_OWNERDRAWFIXED
=0x0400,
LVS_NOCOLUMNHEADER
=0x4000,
LVS_NOSORTHEADER
=0x8000
}
#endregion
The override of the CreateParams property.
protected override
CreateParams CreateParams
{
get
{
CreateParams
cp=base.CreateParams;
cp.Style|=(int)LVSDefs.LVS_OWNERDRAWFIXED;
return
cp;
}
}