Problems with modeless dialog

  • Thread starter Thread starter Anton Antonov via OfficeKB.com
  • Start date Start date
A

Anton Antonov via OfficeKB.com

I'm created the Add-in with toolbar and button.
When user clicked one the button i show modeless dialog but i have the
following problem that tabs on my controls does not work? You can press 'tab'
key but nothing happen :(.

In Outlook Extension you can call "RegisterModeless" and implement your
IExchExtModeless interface which has "EnableModeless" and
"TranslateAccelerator" methods.

I'm have no problems with modeless dialogs in Extension but i don't known any
mechanism similar with IExchExtModeless in Outlook Object Model which I can
use in my Com Add-in.

Is there any standard mechanism of the showing modeless dialogs from Com Add-
ins?
 
Nope. There is no standard mechanism for the COM addins.
One workaround is to install a Windows hook (SetWindowsHookEx) and trap all
the keyboard messages. If a message comes that belongs to one of your
controls, send it directly to the window proc of your control and reset it
to WM_NULL afterward to prevent Outlook from processing it.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Thanks again, Dmitry.
I'm considered your suggestions and I will using hook in my Com Add-in/
 
Back
Top