I can't imagine what they were thinking when they did this. It makes
no sense to require an ARGB value in a different order in two
different places. So now I have to convert it back and forth?
Unbelievable.
(I really hope I'm wrong)
Backslider
public static int ColorToColorref(Color clr)
{
return (clr.R + (clr.G << 8) + (clr.B << 16));
}
Obviously the documentation is wrong here (or maybe it's rather a bug in the
framework?).
BL
"Backslider" <backs...@mail.com> wrote in message
news:c3c92182.0210...@posting.google.com...
Backslider
"Bogdan Ledwig" <bogd...@hotmail.com> wrote in message news:<OZDF2#GfCHA.1768@tkmsftngp11>...