View Single Post
  #4  
Old May 20th 09, 02:29 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Override the 'To' Button in Outlook

Once you know the window hWnd for that dialog you can close it, to respond
to it opening would require handling all Windows messages looking for
creation of that window (the select names dialog). You'd close that and open
your own dialog. Whether that dialog was an ATL form template or a Windows
Form or whatever in whatever language you're using. Since you'd be creating
that dialog from scratch you would be able to handle its appearance and its
return value.

It's not going to be easy or simple, and you'll have to work out most of the
details yourself.

--
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


"Zengfu Xu" wrote in message
...
Hi Ken,

Thank you very much for your help.

I can use WM_CLOSE message to close the To dialog screen. But how can I
use
the Win32 API calls and callbacks to handle the 'To' dialog window
("Select
Names") opening?

Our clients use both Outlook 2003 and Outlook 2007. We do like to provide
our
own dialog screen for the contact list otherthan Outlook's address book.

Many thanks

Zengfu Xu
--
Software Developer
Office Automation


Ads