PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Program Addins
Customizing contacts
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Program Addins
Customizing contacts
![]() |
Customizing contacts |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi,
I would like to write addin that for given contact would invoke function from external dll. I know that I cannot add new menu item to popup context menu that is shown when contact is right clicked. I would like to simulate this functionality somehow. Is it somehow possible to check from inside of addin which contact is currently selected? thanks, Martin |
|
|
|
#2 |
|
Guest
Posts: n/a
|
You can add things to the context menu but unfortunately there's no easy way
to tell what was right-clicked. It won't necessarily be the contact that is currently selected. See http://www.outlookcode.com/codedetail.aspx?id=526 for an example of adding to an Explorer context menu. To tell what's selected in a folder use ActiveExplorer.Selection, which is a collection. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Martin Jedrzejewski" <luskan@aster.pl> wrote in message news:%23JkrbaNJFHA.1304@TK2MSFTNGP09.phx.gbl... > Hi, > > I would like to write addin that for given contact would invoke function > from external dll. I know that I cannot add new menu item to popup context > menu that is shown when contact is right clicked. I would like to simulate > this functionality somehow. Is it somehow possible to check from inside of > addin which contact is currently selected? > > thanks, > Martin > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
hi, thanks for the hints, I was actually thinking of using FolderSwitch and
SelectionChange events for getting information on which contact (or contacts) are choosen. What bother me is whether this will be portable, or I will have to set some version of Office as a minimum. Martin Uzytkownik "Ken Slovak - [MVP - Outlook]" <kenslovak@mvps.org> napisal w wiadomosci news:uTysmjYJFHA.1528@TK2MSFTNGP09.phx.gbl... > You can add things to the context menu but unfortunately there's no easy > way to tell what was right-clicked. It won't necessarily be the contact > that is currently selected. See > http://www.outlookcode.com/codedetail.aspx?id=526 for an example of adding > to an Explorer context menu. > > To tell what's selected in a folder use ActiveExplorer.Selection, which is > a collection. > > -- > Ken Slovak > [MVP - Outlook] > http://www.slovaktech.com > Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 > Reminder Manager, Extended Reminders, Attachment Options > http://www.slovaktech.com/products.htm > > > "Martin Jedrzejewski" <luskan@aster.pl> wrote in message > news:%23JkrbaNJFHA.1304@TK2MSFTNGP09.phx.gbl... >> Hi, >> >> I would like to write addin that for given contact would invoke function >> from external dll. I know that I cannot add new menu item to popup >> context menu that is shown when contact is right clicked. I would like to >> simulate this functionality somehow. Is it somehow possible to check from >> inside of addin which contact is currently selected? >> >> thanks, >> Martin >> > |
|
|
|
#4 |
|
Guest
Posts: n/a
|
Selection won't change if the user right-clicks on something not currently
selected. I haven't found a reasonable way to tell what was right-clicked. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Martin Jedrzejewski" <luskan@aster.pl> wrote in message news:e%2365eeaJFHA.2704@tk2msftngp13.phx.gbl... > hi, thanks for the hints, I was actually thinking of using FolderSwitch > and SelectionChange events for getting information on which contact (or > contacts) are choosen. What bother me is whether this will be portable, or > I will have to set some version of Office as a minimum. > > Martin |
|
|
|
#5 |
|
Guest
Posts: n/a
|
hi, I have implemented my custom addin but actually I wasnt able to add menu
item to contacts context menu. Well, I was able to add but Outlook was far from being stable, if I wasnt using Reset() function before adding menu item (in OnUpdate) it all worked well, but menu item was seen only first time context menu was being show. I read that this functionality is not supported by Outlook Object Model. Link that You have provided above uses VB, I use COM Addins and C++. I suppose there is no difference between VB and C++ when it comes to OOM functionality?? Currently I just added new tollbar button and Tools menu item. It would be great if Outlook supported customization of context menus as Windows Address Book does with WAB API. martin Uzytkownik "Ken Slovak - [MVP - Outlook]" <kenslovak@mvps.org> napisal w wiadomosci news:u2QfvokJFHA.2980@TK2MSFTNGP10.phx.gbl... > Selection won't change if the user right-clicks on something not currently > selected. I haven't found a reasonable way to tell what was right-clicked. > > -- > Ken Slovak > [MVP - Outlook] > http://www.slovaktech.com > Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 > Reminder Manager, Extended Reminders, Attachment Options > http://www.slovaktech.com/products.htm > > > "Martin Jedrzejewski" <luskan@aster.pl> wrote in message > news:e%2365eeaJFHA.2704@tk2msftngp13.phx.gbl... >> hi, thanks for the hints, I was actually thinking of using FolderSwitch >> and SelectionChange events for getting information on which contact (or >> contacts) are choosen. What bother me is whether this will be portable, >> or I will have to set some version of Office as a minimum. >> >> Martin > |
|
|
|
#6 |
|
Guest
Posts: n/a
|
I have no idea about C++, I don't use it.
-- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Martin Jedrzejewski" <luskan@aster.pl> wrote in message news:ub2eHCNKFHA.4092@tk2msftngp13.phx.gbl... > hi, I have implemented my custom addin but actually I wasnt able to add > menu item to contacts context menu. Well, I was able to add but Outlook > was far from being stable, if I wasnt using Reset() function before adding > menu item (in OnUpdate) it all worked well, but menu item was seen only > first time context menu was being show. I read that this functionality is > not supported by Outlook Object Model. Link that You have provided above > uses VB, I use COM Addins and C++. I suppose there is no difference > between VB and C++ when it comes to OOM functionality?? > > Currently I just added new tollbar button and Tools menu item. It would be > great if Outlook supported customization of context menus as Windows > Address Book does with WAB API. > > martin |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

