I have a small Outlook 2010/2013 Add-In written in C#. It adds additional context menu entries if the selected text in the Email body fits some pattern. For this I used a ribbon.xml like:
<?xml version="1.0" encoding="UTF-8"?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
<ribbon/>
<contextMenus>
<contextMenu idMso="ContextMenuReadOnlyMailText">
<button id="DoSomethingButton" insertAfterMso="Copy" getLabel="GetLabel"
getImage="GetImage" onAction="DoSomething" getVisible="IsTextSelected"
getScreentip="GetTip" />
</contextMenu>
</contextMenus>
</customUI>
That works fine. Now I want to extend that it also add some context menu entries if the user selects some text in the subject of an Email.
Unfortunately I was not able to find any Microsoft Documentation how to do that. I am sure this is possible, because auto-correct also works in the subject field, but I just cannot find how. Can anyone help?