Available in the LEADTOOLS Imaging toolkit. |
ButtonMenuTool example for C++ 4.0 and later
int i;
CAnnToolbar AnnToolbar;
AnnToolbar = m_LEAD1.GetAnnToolbar();
// make the first rubber stamp tool draw a rectangle
for(i=0; i<AnnToolbar.GetButtonCount(); i++)
{
// is this the button with the rubber stamps ?
if(AnnToolbar.GetButtonToolCount(i) > 1)
AnnToolbar.SetButtonMenuTool(i, 0, ANNTOOL_RECT);
}