When I load my plugin within Acrobat I create a new menu item that it's passed at the end of existing items, back to Help item.
I would like to move it to the left, between View and Window if possible.
AVMenubar menubar = AVAppGetMenubar();
AVMenu viewMenu = AVMenubarAcquireMenuByName(menubar, "View");
AVMenuIndex indexMenu = AVMenubarGetMenuIndex(menubar, viewMenu);
// Create our menu item
stMenuItem = AVMenuItemNew(MyMenuItemTitle, MyMenuItemName, NULL, true, NO_SHORTCUT, 0, NULL, gExtensionID);
// ....
commonMenu = AVMenubarAcquireMenuByName(menubar, "MYPREFIX:MYID");
if (!commonMenu) {
commonMenu = AVMenuNew("Menu Item Name", "MYPREFIX:MYID", gExtensionID);
AVMenubarAddMenu(menubar, commonMenu, APPEND_MENU);
}
AVMenuAddMenuItem(commonMenu, stMenuItem, 3/*indexMenu*//*APPEND_MENUITEM*/);
But whatever index I pass to AVMenuAddMenuItem() I get my menu item to the end. I was thinking I might need to change the index of those back items, but I didn't find a *SetIndex function.