protected virtual void ApplyExtendedStyles()
{
const int LVS_EX_SUBITEMIMAGES = 0x00000002;
//const int LVS_EX_TRANSPARENTBKGND = 0x00400000;
const int LVS_EX_HEADERINALLVIEWS = 0x02000000;
const int STYLE_MASK = LVS_EX_SUBITEMIMAGES | LVS_EX_HEADERINALLVIEWS;
int style = 0;
if (this.ShowImagesOnSubItems && !this.VirtualMode)
style ^= LVS_EX_SUBITEMIMAGES;
if (this.ShowHeaderInAllViews)
style ^= LVS_EX_HEADERINALLVIEWS;
NativeMethods.SetExtendedStyle(this, style, STYLE_MASK);
}