AnnSetUser example for C++ Builder
// This example is also for:
AnnSetVisible method
void __fastcall TForm1::Button1Click(TObject *Sender)
{
//hide the selected objects
LEADAnn1->AnnSetVisible (LEADAnn1->AnnContainer, False, ANNFLAG_RECURSE + ANNFLAG_SELECTED, "");
//set the selected objects to belong to user XXX
LEADAnn1->AnnSetUser (LEADAnn1->AnnContainer, "", "xxx", True);
}