Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: ribbonx and with c++

Geek News

ribbonx and with c++
"Daniel" <dgrillo[ at ]radvision.com> 2/22/2007 6:58:11 PM
Hello all. I'm currently updating an older Outlook addin we have. It's
written in C++ with visual Studio 2003. We're trying to put our addin
buttons on the ribbon on appointment items. I found the excellent article
written by Eric Faller, "Using Ribbonx with C++ and atl"
(http://blogs.msdn.com/jensenh/archive/2006/12/08/using-ribbonx-with-c-and-atl.aspx)
and have managed to get the ribbon button to appear.

The callbacks are a little trickier though is getting the call back for the
button right. Mr. Faller implements all the callback functions on the same
class that implements "OnConnection()". That class is not the one in which
I've implemented my inspector wrapper for appointments. How would I be able
to have the callbacks occurr not on the connection class but on another
class. And how would this effect multiple open appointments?


Re: ribbonx and with c++
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 2/22/2007 8:33:58 PM
You cannot have the call occur on some other object (how would Outlook know
which one?), but you can definitely find out which inspector the call comes
from by reading the RibbonControl.Context property - RibbonControl will be
passed to your event handler, and Context property is the Inspector object.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Daniel" <dgrillo[ at ]radvision.com> wrote in message
news:%23TanyNrVHHA.392[ at ]TK2MSFTNGP06.phx.gbl...
[Quoted Text]
> Hello all. I'm currently updating an older Outlook addin we have. It's
> written in C++ with visual Studio 2003. We're trying to put our addin
> buttons on the ribbon on appointment items. I found the excellent article
> written by Eric Faller, "Using Ribbonx with C++ and atl"
> (http://blogs.msdn.com/jensenh/archive/2006/12/08/using-ribbonx-with-c-and-atl.aspx)
> and have managed to get the ribbon button to appear.
>
> The callbacks are a little trickier though is getting the call back for
> the button right. Mr. Faller implements all the callback functions on the
> same class that implements "OnConnection()". That class is not the one in
> which I've implemented my inspector wrapper for appointments. How would I
> be able to have the callbacks occurr not on the connection class but on
> another class. And how would this effect multiple open appointments?
>


Re: ribbonx and with c++
Dan G 2/23/2007 2:11:24 PM
Thank you. I think that was the hint I needed.

"Dmitry Streblechenko" wrote:

[Quoted Text]
> You cannot have the call occur on some other object (how would Outlook know
> which one?), but you can definitely find out which inspector the call comes
> from by reading the RibbonControl.Context property - RibbonControl will be
> passed to your event handler, and Context property is the Inspector object.
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>
> "Daniel" <dgrillo[ at ]radvision.com> wrote in message
> news:%23TanyNrVHHA.392[ at ]TK2MSFTNGP06.phx.gbl...
> > Hello all. I'm currently updating an older Outlook addin we have. It's
> > written in C++ with visual Studio 2003. We're trying to put our addin
> > buttons on the ribbon on appointment items. I found the excellent article
> > written by Eric Faller, "Using Ribbonx with C++ and atl"
> > (http://blogs.msdn.com/jensenh/archive/2006/12/08/using-ribbonx-with-c-and-atl.aspx)
> > and have managed to get the ribbon button to appear.
> >
> > The callbacks are a little trickier though is getting the call back for
> > the button right. Mr. Faller implements all the callback functions on the
> > same class that implements "OnConnection()". That class is not the one in
> > which I've implemented my inspector wrapper for appointments. How would I
> > be able to have the callbacks occurr not on the connection class but on
> > another class. And how would this effect multiple open appointments?
> >
>
>
>

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net