A
Alex Ionescu
Hello everyone,
I'm developping an add-in that, among other things, will add a new item to
the context menu (when you right-click on a message).
I've noticed that the menu is only created after the user first right-clicks
on a message. No problem, since I'm subclassing OE anyways for another
function of the addin.
I am sucesful in using Set objCB = objExpl.CommandBars.Item("Context Menu")
and if I set a watch on objCB I can see all the items of the Context Menu.
However, should I try to add, modify, remove or change any single setting of
any item on the context menu, Outlook returns a failure. Did Microsoft
disable this? Any way around it? And when I ask any way.... I mean any
way...I've already created a button with createwindowex that I've attached
to a subclassed toolbar (so I can have a picture over 16x16) so I'm not
afraid to do some crazy hacking with the menu to make it do what I want it.
Thanks everyone for your suggestions,
Alex Ionescu
I'm developping an add-in that, among other things, will add a new item to
the context menu (when you right-click on a message).
I've noticed that the menu is only created after the user first right-clicks
on a message. No problem, since I'm subclassing OE anyways for another
function of the addin.
I am sucesful in using Set objCB = objExpl.CommandBars.Item("Context Menu")
and if I set a watch on objCB I can see all the items of the Context Menu.
However, should I try to add, modify, remove or change any single setting of
any item on the context menu, Outlook returns a failure. Did Microsoft
disable this? Any way around it? And when I ask any way.... I mean any
way...I've already created a button with createwindowex that I've attached
to a subclassed toolbar (so I can have a picture over 16x16) so I'm not
afraid to do some crazy hacking with the menu to make it do what I want it.
Thanks everyone for your suggestions,
Alex Ionescu