In standard MSN code, there's a line on a ListView - Ownerdraw - DrawItem :
if ((e.State & ListViewItemStates.Selected) != 0)
{
//Draw the selected background
}
Apparently it does a bitwise comparison for the state ?? Why bitwise ? The following doesn't work:
if (e.State == ListViewItemStates.Selected)
{
//Doesn't work ??
}
Why doesn't that comparison work ? It's just a standard Enum ?? I'm a bit bedaffled ..