AnnSetROP2 example for C++ Builder
void TForm1::AnnSetROP2(HANNOBJECT
hAnnObject)
{
L_UINT uRop2; /* ROP2 code */
/* Get the current ROP2 code */
LEADAnn1->AnnGetROP2(hAnnObject,
uRop2);
/* if the code is not ANNROP2_AND, make it so */
if(uRop2 != ANNROP2_AND)
{
/* make sure the FillMode is set to
Transparent */
LEADAnn1->AnnSetFillMode(hAnnObject,
ANNFILLMODE_TRANSPARENT, true);
/* set ROP2 code */
LEADAnn1->AnnSetROP2(hAnnObject,
ANNROP2_AND, true);
}
}