I've never seen or heard of that but it's most likely that you're getting
the hWnd for an incorrect window. Get the hWnd and then use Spy++ to see
what window handle you're actually getting.
--
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
"goran" wrote in message
...
Ken,
Sorry to bother you again, but this is driving me crazy. My Add-in adds a
dropdowncombo on every mail inspector toolbar. When user selects something
from dropdowncombo, new modal form dialog opens on the top of the
inspector.
I used SetwindowPos to set this small dialog on the top and also used
SetForegroundWindow for inspector window. However when I click on the
modal
form Inspector window gets minimized and whatever window is under becomes
foreground. When I close modal dialog form, Inspector gets active and it
shows. I get hWnd of the inspector on Inspector activate event and use
that
handle to set inspector as foreground window inn modal form activate
event.
No matter what I do inspector window flashes and gets minimized when I
click
on anything on modal form. I need the inspector to stay in place until
modal
form is closed. Any ideas how to fix this? This only happens when email
editor is WordMail and when dll compiled, in design mode everything is OK.
Thanks in advance,
Goran