Converts an RGB value to a TColor. To convert a TColor to an RGB value, use the ColorToRgb function.
//From http://www.richelbilderbeek.nl/CppRgbToColor.htm TColor RgbToColor( const unsigned char red, const unsigned char green, const unsigned char blue ) { return static_cast<TColor>(RGB(red,green,blue)); }