BCGControlBar Pro for MFC
BOOL CBCGPColor::AdaptColors ( COLORREF  clrBase,
COLORREF  clrTone,
BOOL  bClampHue = TRUE 
)

Replaces color with specified tone color. If the clrBase parameter specifies a similar hue component for the color, it will replace it with an adapted color based on clrTone.

Parameters
clrBaseBase color (source).
clrToneTone color (destination).
bClampHueSpecifies whether hue value of result colors should be clamped.