registerID = SwApp.RegisterThirdPartyPopupMenu()
resultCode = SwApp.AddItemToThirdPartyPopupMenu2(
registerID,
CInt(swDocumentTypes_e.swDocPART),
"Test1",
addinID,
"TestCallback",
"EnableTest",
"",
"Test1",
cmdGroup.SmallMainIcon,
CInt(swMenuItemType_e.swMenuItemType_Default))
resultCode = SwApp.AddItemToThirdPartyPopupMenu2(
registerID,
CInt(swDocumentTypes_e.swDocPART),
"Separator1",
addinID
"",
"",
"",
"",
"",
CInt(swMenuItemType_e.swMenuItemType_Separator))
resultCode = SwApp.AddItemToThirdPartyPopupMenu2(
registerID,
CInt(swDocumentTypes_e.swDocPART),
"Menu Break",
addinID,
"",
"",
"",
"",
"",
CInt(swMenuItemType_e.swMenuItemType_Break))
resultCode = SwApp.AddItemToThirdPartyPopupMenu2(
registerID,
CInt(swDocumentTypes_e.swDocPART),
"",
addinID,
"TestCallback",
"EnableTest",
"",
"NoOp",
cmdGroup.SmallMainIcon,
CInt(swMenuItemType_e.swMenuItemType_Default))
|