Hi Dmitry,
Well I found the problem. I did the old fashion method of commenting out
code until you get the expected behavior. With our custom dialog we are
creating a custom caption (titlebar) and handling some of the Non Client
messages. As it turns out I was returning a FALSE (zero) for the
WM_NCACTIVATE message which was screwing up the activation logic. Actually I
had reviewed this code a few times and it never dawned on me that I was
returning the improper value. Once I started returing TRUE all things
started operating normal.
BTW - I did check the Visual Studio message functionality and it does put a
return value of FALSE for the default message.
Thanks for your help.
Tom -
"Dmitry Streblechenko" wrote in message
...
How do you retrieve the Outlook window handle and make it the parent of
your window?
Whar if you pass to Address() the handle of the Outlook window?
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Tom" wrote in message
...
Hi Dmityr,
I have tried using the Outlook window, and the active Explorer window as
the parent- not to mention about every other window. We are opening our
custom modeless dialog from a toolbar button command. Then from a button
command I open the address book.
"Dmitry Streblechenko" wrote in message
...
How is your modal dialog that launches teh AB dialog displayed? Did tou
make the active Explorer or Inspector its parent?
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Ken Slovak - [MVP - Outlook]" wrote in message
...
Since you're using Extended MAPI for opening the Address Book dialog
maybe it might be better if you posted about this in
microsoft.public.win32.programmer.messaging. The Extended MAPI
specialists hang out there so you're more likely to get an answer that
you can use.
--
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
"Tom" wrote in message
...
Hi Ken,
Yes I have tried setting the z-order, hook procedures and a number of
other experiments. I believe this may have something to do with
Extended MAPI login. My theory is that when Outlook logs in the
Outlook window handle is used in a way that screws up message
processing. The real bazaar part of the issue is when I click on the
address book window the Outlook Window momentarily gets focus and then
reverts back to my dialog. I believe you are correct in your
assumption that the z-order is messed up - however I think that there
is a piece of the puzzle (along with hair) that I am missing.
Thanks,
Tom -