function ColorToRGB(Color: TColor): Integer;
int __fastcall ColorToRGB(Graphics::TColor Color);
Converts a TColor value into an RGB representation of the color.
Call ColorToRGB to obtain an RGB representation of a color for using with Windows API calls. ColorToRGB strips away the information that is stored in the highest order bits about which palette to use for colors that are not always available.