int CBCGPPopupMenu::InsertItem | ( | const CBCGPToolbarMenuButton & | button, |
int | iInsertAt = -1 |
||
) |
Inserts a new menu item at the specified position, moving other items down the menu.
Inserts a menu item represented by a reference to a CBCGPToolbarMenuButton object into the popup menu. If the iInserAt parameter is -1 the item is added at the end of the popup menu.
button | Specifies the menu item to insert. |
iInsertAt | Specifies the zero-based index of the position to insert the item. If this parameter is -1, the item is added to the end of the menu. |