1

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.

Extend the context menu

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?

iwan.z
  • 552
  • 5
  • 8

3 Answers3

2

That menu is not extensible. Spellchecker is an integral part of that control, it is not added dynamically by an addin.

Dmitry Streblechenko
  • 62,942
  • 4
  • 53
  • 78
  • Thank you very much for your response. It put a full stop to my search for this possibility. I wanted to add custom context menu to Outlook message subject line. Now, i will stop. – bprasanna Aug 16 '19 at 05:41
0

The Ribbon UI extensibility model doesn't provide any idMso values for these context menus. You can all possible customizations described in the Extending the User Interface in Outlook 2010 article in MSDN.

Eugene Astafiev
  • 47,483
  • 3
  • 24
  • 45
0

What you mean by outlook 2010/2013 addin? Single addin supporting both the versions of outlook?

As there are few functionalities which are deprecated from 2010.

  • Yes one add-in but with support for both outlook versions. I am sure there are different functionalities, but here I am asking for "how to extend the subject context menu". Unfortunately it is not possible as it was already answered. – iwan.z Mar 24 '15 at 13:22
  • did you use ribbons in ur addin? – Satish Kumar Mar 25 '15 at 15:44
  • No, I do not need a ribbon for my functionality. – iwan.z Mar 28 '15 at 08:32