BCGSuite for MFC
void CBCGPBrush::ReplaceColors ( COLORREF  clrOld,
COLORREF  clrNew 
)

If the brush color matches the clrOld parameter, clrNew will take its place.

Parameters
clrOldThe source color.
clrNewThe destination color.