ButtonMenuTool example for C++ Builder
// This example is also for:
// ButtonToolCount Property.
//make the first rubber stamp tool draw a rectangle
int i ;
for (i= 0; i<LEADAnn1->AnnToolbar->ButtonCount; i ++)
{
//is this the button with the rubber stamps?
if (LEADAnn1->AnnToolbar-> ButtonToolCount [i] > 1 )
LEADAnn1->AnnToolbar-> ButtonMenuTool [i][0]= ANNTOOL_RECT;
}
}