AnnSetForeColor example for C++ Builder
void TForm1::TestAnnForeColor ( HANNOBJECT hAnnObject )
{
COLORREF crColor; /* Object foreground color */
/* Invert the foreground color */
LEADAnn1->AnnGetForeColor ( hAnnObject, crColor );
LEADAnn1->AnnSetForeColor ( hAnnObject, crColor ^ 0x00FFFFFF, false );
}