ButtonRows example for C++ 5.0 and later

For more information on declaration and unlocking procedures used in testing this example, refer to Annotation Declaration Information.

//This sample resizes the annotation toolbar so that it has an additional column.
void IncrementButtonRows (ILEADRasterAnnToolBar * pAnnToolBar)
{
   if ((pAnnToolBar) && (pAnnToolBar->GetToolBarhWnd()))
   {
      pAnnToolBar->PutButtonRows(pAnnToolBar->GetButtonRows() + 1);
   }
}