There was a discussion recently on the Outlook-dev list - see "Function
Item_Open()" thread:
http://groups.yahoo.com/group/outloo...tem_Open%28%29
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Jenny Tam" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks for your help, but I'm not familiar with windows hooks at all.
> Can you point me to some examples or references?
>
> Thanks,
> jenny
>
>
>
> "Dmitry Streblechenko" <(E-Mail Removed)> wrote in message
news:<#3r#(E-Mail Removed)>...
> > You can if you set a windows hook - SetWindowsHookEx(WH_GETMESSAGE,
> > YourHookProc, 0, GetCurrentThreadId)
> >
> > Dmitry Streblechenko (MVP)
> > http://www.dimastr.com/
> > OutlookSpy - Outlook, CDO
> > and MAPI Developer Tool
> >
> >
> > "Jenny Tam" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > I have played with it further and may I conclude that it is NOT
> > > possible using VC++ from the Outlook addin? Quoted and summarized
> > > from MSDN below:
> > >
> > > "You can use the ShortcutText property only for command bar buttons
> > > that contain an OnAction macro, and the OnAction property sets the
> > > name of a Visual Basic procedure that will run when the button is
> > > clicked."
> > >
> > > Any help is appreciated!
> > > Jenny
> > >
> > >
> > >
> > > (E-Mail Removed) (Jenny Tam) wrote in message
> > news:<(E-Mail Removed)>...
> > > > Hi,
> > > >
> > > > I've written an Outlook addin using VC++ and would like to know
> > > > whether it is possible to assign hotkeys (forget the real name) to
> > > > custom buttons? Currently my button is in the File menu and called
> > > > '&Export', so the user can access it by 'Alt+F+E'. However, is it
> > > > possible to assign something like 'Ctrl+E'?
> > > >
> > > > I have used the ShortcutText property of the CommandBarButton.
> > > > 'Ctrl+E' is shown but is not activated ...
> > > >
> > > > This is what I get from MSDN about the ShortcutText property:
> > > >
> > > > "You can set this property only for command bar buttons that contain
> > > > an OnAction macro"
> > > >
> > > > What does this really mean?
> > > >
> > > > Any help is appreciated,
> > > > Jenny