DWORD GetNearestColor( DWORD crColor ) const;
crColor
Specifies the color to be matched.
Returns the closest logical color to a specified logical color that the given device can represent.
An RGB color value that names the solid color closest to the crColor value that the device can represent.
::GetNearestColor