none
How to customize context menu in Outlook Reminder

    Question

  • Hi All.

    I need to customize right click event of Outlook reminder window, to add a new item in the context menu.

    Is this possible, and if yes how?

    Thanks in advance.

    Saturday, May 01, 2010 10:53 AM

Answers

  • Thanks for the reply Ken.

    Could you please give some reference or a breif explanation why it is impossible?

    Thanks you in advance.

     

    • Marked as answer by Losonik Monday, May 03, 2010 1:16 PM
    Monday, May 03, 2010 1:15 PM
  • The reminders window isn't exposed at all in the Outlook object model (even in Outlook 2010). Technically it is possible to handle things in that window, but only by using PInvokes to handle things in that window.
     
    You'd know when it's being opened by handling the event of a reminder firing, but from there you'd be on your own to find when the context menu was displayed and on adding to it. That would require handling mouse clicks to that window using callbacks and Windows window message handling. It could be done with a lot of code hacking and Win32 API calls, but it would be a real hack and I'm not sure how stable that would be.

    --
    Ken Slovak
    [MVP - Outlook]
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007.
    Reminder Manager, Extended Reminders, Attachment Options.
    http://www.slovaktech.com/products.htm
     
     
    "Losonik" <=?utf-8?B?TG9zb25paw==?=> wrote in message news:b25423d3-0438-4851-99ea-eb71dc3d7e80...

    Thanks for the reply Ken.

    Could you please give some reference or a breif explanation why it is impossible?

    Thanks you in advance.

     


    Ken Slovak MVP - Outlook
    • Marked as answer by Losonik Tuesday, May 04, 2010 8:53 AM
    Monday, May 03, 2010 1:21 PM
  • Thanks Ken.

    I am quite new to this, so I think I won't risk to do such hackings.

    Could you please help me in one more question?

    An alternative solution for me can be to add a new button to the Reminder window, instead of customizing the context menu. I know that this window is not customizable, but by catching BeforeReminderShow event, and assigning "true" to cancel, the Reminder window would not be shown, and my custom Reminder window can be shown.

    I wonder if it would be an easy and safe thing to do? Can I handle only the click event of my new button and I make it so that all the other events are handled by default as previously? Would this be possible and safe?

    Thank you very much.

    • Marked as answer by Losonik Tuesday, May 04, 2010 8:53 AM
    Monday, May 03, 2010 1:32 PM
  • Hi,
     
    As far as handling your own window that can be done as you outlined. What you display in that window is up to you at that point. If you do that you'd need to provide any buttons and button handling yourself for things like Dismiss or Snooze, etc.

    --
    Ken Slovak
    [MVP - Outlook]
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007.
    Reminder Manager, Extended Reminders, Attachment Options.
    http://www.slovaktech.com/products.htm
     
     
    "Losonik" <=?utf-8?B?TG9zb25paw==?=> wrote in message news:720e878f-b58c-4595-9d45-e06971bdc1c4...

    Thanks Ken.

    I am quite new to this, so I think I won't risk to do such hackings.

    Could you please help me in one more question?

    An alternative solution for me can be to add a new button to the Reminder window, instead of customizing the context menu. I know that this window is not customizable, but by catching BeforeReminderShow event, and assigning "true" to cancel, the Reminder window would not be shown, and my custom Reminder window can be shown.

    I wonder if it would be an easy and safe thing to do? Can I handle only the click event of my new button and I make it so that all the other events are handled by default as previously? Would this be possible and safe?

    Thank you very much.


    Ken Slovak MVP - Outlook
    • Marked as answer by Losonik Tuesday, May 04, 2010 8:53 AM
    Monday, May 03, 2010 5:45 PM
  • Hi Ken. Thanks again for your help.

    What I wonder is if there is a means to pass standard control's (Dismiss, Snooze, ...) event handling to the default handlers, instead of implementing handlers for them myself.

    Thanks a lot.

    Losonik

    • Marked as answer by Losonik Tuesday, May 04, 2010 8:53 AM
    Tuesday, May 04, 2010 5:49 AM

All replies

  • Not possible.

    --
    Ken Slovak
    [MVP - Outlook]
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007.
    Reminder Manager, Extended Reminders, Attachment Options.
    http://www.slovaktech.com/products.htm
     
     
    "Losonik" <=?utf-8?B?TG9zb25paw==?=> wrote in message news:cfddcbd6-a3b8-4761-8bb0-49cfe3dd0ac0...

    Hi All.

    I need to customize right click event of Outlook reminder window, to add a new item in the context menu.

    Is this possible, and if yes how?

    Thanks in advance.


    Ken Slovak MVP - Outlook
    Monday, May 03, 2010 12:59 PM
  • Thanks for the reply Ken.

    Could you please give some reference or a breif explanation why it is impossible?

    Thanks you in advance.

     

    • Marked as answer by Losonik Monday, May 03, 2010 1:16 PM
    Monday, May 03, 2010 1:15 PM
  • The reminders window isn't exposed at all in the Outlook object model (even in Outlook 2010). Technically it is possible to handle things in that window, but only by using PInvokes to handle things in that window.
     
    You'd know when it's being opened by handling the event of a reminder firing, but from there you'd be on your own to find when the context menu was displayed and on adding to it. That would require handling mouse clicks to that window using callbacks and Windows window message handling. It could be done with a lot of code hacking and Win32 API calls, but it would be a real hack and I'm not sure how stable that would be.

    --
    Ken Slovak
    [MVP - Outlook]
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007.
    Reminder Manager, Extended Reminders, Attachment Options.
    http://www.slovaktech.com/products.htm
     
     
    "Losonik" <=?utf-8?B?TG9zb25paw==?=> wrote in message news:b25423d3-0438-4851-99ea-eb71dc3d7e80...

    Thanks for the reply Ken.

    Could you please give some reference or a breif explanation why it is impossible?

    Thanks you in advance.

     


    Ken Slovak MVP - Outlook
    • Marked as answer by Losonik Tuesday, May 04, 2010 8:53 AM
    Monday, May 03, 2010 1:21 PM
  • Thanks Ken.

    I am quite new to this, so I think I won't risk to do such hackings.

    Could you please help me in one more question?

    An alternative solution for me can be to add a new button to the Reminder window, instead of customizing the context menu. I know that this window is not customizable, but by catching BeforeReminderShow event, and assigning "true" to cancel, the Reminder window would not be shown, and my custom Reminder window can be shown.

    I wonder if it would be an easy and safe thing to do? Can I handle only the click event of my new button and I make it so that all the other events are handled by default as previously? Would this be possible and safe?

    Thank you very much.

    • Marked as answer by Losonik Tuesday, May 04, 2010 8:53 AM
    Monday, May 03, 2010 1:32 PM
  • Hi,
     
    As far as handling your own window that can be done as you outlined. What you display in that window is up to you at that point. If you do that you'd need to provide any buttons and button handling yourself for things like Dismiss or Snooze, etc.

    --
    Ken Slovak
    [MVP - Outlook]
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007.
    Reminder Manager, Extended Reminders, Attachment Options.
    http://www.slovaktech.com/products.htm
     
     
    "Losonik" <=?utf-8?B?TG9zb25paw==?=> wrote in message news:720e878f-b58c-4595-9d45-e06971bdc1c4...

    Thanks Ken.

    I am quite new to this, so I think I won't risk to do such hackings.

    Could you please help me in one more question?

    An alternative solution for me can be to add a new button to the Reminder window, instead of customizing the context menu. I know that this window is not customizable, but by catching BeforeReminderShow event, and assigning "true" to cancel, the Reminder window would not be shown, and my custom Reminder window can be shown.

    I wonder if it would be an easy and safe thing to do? Can I handle only the click event of my new button and I make it so that all the other events are handled by default as previously? Would this be possible and safe?

    Thank you very much.


    Ken Slovak MVP - Outlook
    • Marked as answer by Losonik Tuesday, May 04, 2010 8:53 AM
    Monday, May 03, 2010 5:45 PM
  • Hi Ken. Thanks again for your help.

    What I wonder is if there is a means to pass standard control's (Dismiss, Snooze, ...) event handling to the default handlers, instead of implementing handlers for them myself.

    Thanks a lot.

    Losonik

    • Marked as answer by Losonik Tuesday, May 04, 2010 8:53 AM
    Tuesday, May 04, 2010 5:49 AM
  • Nothing in that dialog is exposed at all to the programmer. Anything you do in your own dialog that you create has to be completely handled by you. You need your own logic, form, controls, event handlers, etc.

    --
    Ken Slovak
    [MVP - Outlook]
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007.
    Reminder Manager, Extended Reminders, Attachment Options.
    http://www.slovaktech.com/products.htm
     
     
    "Losonik" <=?utf-8?B?TG9zb25paw==?=> wrote in message news:653f75e4-0078-4ed1-9d08-0b84cf3c5576...

    Hi Ken. Thanks again for your help.

    What I wonder is if there is a means to pass standard control's (Dismiss, Snooze, ...) event handling to the default handlers, instead of implementing handlers for them myself.

    Thanks a lot.

    Losonik


    Ken Slovak MVP - Outlook
    Tuesday, May 04, 2010 4:31 PM
  • Thanks a lot Ken.

    You helped me very much.

    Wednesday, May 05, 2010 7:08 AM