A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

ribbonx and with c++



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 22nd 07, 06:58 PM posted to microsoft.public.outlook.program_addins
Daniel
external usenet poster
 
Posts: 5
Default ribbonx and with c++

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/archiv...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?


  #2  
Old February 22nd 07, 08:33 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default ribbonx and with c++

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" wrote in message
...
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/archiv...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?



  #3  
Old February 23rd 07, 02:11 PM posted to microsoft.public.outlook.program_addins
Dan G
external usenet poster
 
Posts: 3
Default ribbonx and with c++

Thank you. I think that was the hint I needed.

"Dmitry Streblechenko" wrote:

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" wrote in message
...
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/archiv...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?




 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:26 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.