How to add keyboard accelerators for the Outlook Addin?

R

Ravikumar

I have created a com addin for the Outlook. On my toolbar button press, I am
popping a dialog.

I am using MFC/C++ language to create my addin.

Could anyone suggest how to use keyboard accelertor to open my dialog from
my addin. Say pressing F8 I would like to see my dialog.

I have tried this but could not get sucess.
Added accelerator resource for VK_F8 into my addin's RC file. I have handled
the oncommand event for the F8 button into the Application class(I cant find
any other place to handle).

On execution the oncommand event for the F8 button is not executing at all.
Break point is not hitting to my application class event.
 
K

Ken Slovak - [MVP - Outlook]

As far as I know the CommandBarButton interface doesn't support function key
accelerators. You'd need to handle the function key press using Win32
callbacks and then call the execute method of the button to implement what
you want.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top