I simply created a simply separate class for the COM add-in and communicates with ECE using global variables. In case of OutlookSpy the ribbon hanling is very simple - it is always shown no matter what :-) I did ribbon related functionality for several other add-ins, but there the show/hide ribbon logic was based on the sent/unsent state of the item.
Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool
"Michael Tissington" <mtissington[ at ]newsgroup.nospam> wrote in message news:OSphNRcOHHA.448[ at ]TK2MSFTNGP04.phx.gbl...
[Quoted Text] > Thanks, have you been able to connect your ece to the class containing the > ribbon code ? > > "Dmitry Streblechenko" <dmitry[ at ]dimastr.com> wrote in message > news:uE5qCJcOHHA.4172[ at ]TK2MSFTNGP03.phx.gbl... >> If I remember correctly, you should be able to specify the ribbon >> visiblity callback, which will be called each time a ribbon is shown. >> You might want to post in microsoft.public.outlook.program_addins and/or >> microsoft.public.developer.outlook.addins. >> >> Dmitry Streblechenko (MVP) >> http://www.dimastr.com/>> OutlookSpy - Outlook, CDO >> and MAPI Developer Tool >> >> "Michael Tissington" <mtissington[ at ]newsgroup.nospam> wrote in message >> news:%23xuEw0bOHHA.4720[ at ]TK2MSFTNGP03.phx.gbl... >>>I have implemented IRibbonExtensibility but how can I only load the >>>ribbon when the Outlook form is from a specific folder or message class >>>(we have an ECE that does this for pre 2007) >>> >>> The RibbonID does not seem to reflect the actual message class. >>> >> >> > >
|