Context menu for new message window

T

Tom

Hi All,

I am developing an add-in for Outlook 2003 and above and would like to add
an item to the context menu of the "new message" window. Is this possible?
We are using Word for the editor and HTML.

Thanks,
Tom
 
K

Ken Slovak - [MVP - Outlook]

Outlook 2007 adds various context menus to the object model. Outlook 2010
more or less deprecates those and adds new context menu operations to the
ribbon. Outlook 2003 has nothing like that. You can try using the
CommandBars.OnUpdate method to get a hook to the menus, but that's a really
hacked thing that sort of works for Explorers but not really well at all for
Inspectors.
 
T

Tom

Hi Ken,

I have not found the context menu for Outlook 2007 for the new message
window. How do I hook to the context menu for the new message window for
Outlook 2007? Is this buried in the Word object model somewhere? I am only
interested in the HTML editing.

Thanks for your response!
 
K

Ken Slovak - [MVP - Outlook]

Oh, you want the context menu for an Inspector? If that's there at all it
would be in the Word object model somewhere.
 
T

Tom

Yes that is exactly what I want and have been pounding my head on my desk
trying to do

I spent the other day trying to figure out how to retrieve the context menu
command bar and could not find it. Then I started thinking that we may have
an event for the Word that I don't know about. This is why I decided to
post to the newsgroup.

So you really don't know (or have not tried) how to get the context menu for
a new message window.

Is there a newsgroup for word add-ins?

Thanks!
 
K

Ken Slovak - [MVP - Outlook]

I've never tried, but my guess is that the only way this would work (if it
would at all) is to handle Inspector.CommandBars.OnUpdate and then getting
the context menu that way. That's how we used to hack Explorer context menus
before they were exposed.
 
J

joshmerchant

Tom - curious if you were able to get this working for 2007.

Trying to do something similar.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top