Can i convert a COLORREF ?

Hi Guys,
just want to know if is there a way to convert a ColorREF to 3 floats …

cause the function glColor4d() needs 3 floats that are in the COLORREF variable …

thanks

GetRValue
GetBValue
GetGValue

COLORREF object;

object.GetRValue();

Is This??
Doesnt work …

try
GetRValue(object)

thx it worked!

you are god