AnnAutoMenuEnable example for C++ Builder

//This example toggles the AnnAutoMenuEnable property.
if (LEADAnn1->AnnAutoMenuEnable == true)
   LEADAnn1->AnnAutoMenuEnable = false;
else
   LEADAnn1->AnnAutoMenuEnable = true;