View Single Post
  #9  
Old February 16th 07, 02:19 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook 2007 Ribbon Minimized ComboBox OnChange

ForegroundWindow may not be the correct window handle to use. I'd check in
Spy++ to see what's what. You want to look for a window with a class of
"rctrl_renwnd32" and a caption that matches the caption your Inspector has
in the first Inspector.Activate event. I usually use FindWindow myself.

According to a contact on the ribbon team at MS the first problem with the
message boxes is a known bug. In his words "the error messagebox gets eaten
as the minimized ribbon closes".

He was not able to repro the second issue with his own comboboxes.

He said that as long as the onChange callback caches the value entered by
the user, and getText returns that value, the combo's are always in sync.
The control referenced in the onChange and getText callbacks should always
refer to the same value to ensure the combo's are in sync.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


wrote in message
ps.com...
Unfortunately that also does not work.

I had already tested using Windows API and trying to display a modal
dialog in front of the Outlook inspector. I get the handle to the
ForegroundWindow and try to display a dialog with same results as with
displaying Message boxes.

Even tried to display a modal form from the combobox click and it does
not get displayed.

But everything works if it comes from a Button instead of the
ComboBox. I will try SPY++ and do some detective work with that :-).

Thanks for all your help. I guess in the worst case I can note this as
a known issue in our add-ins and advice customers to use it with
Ribbon maximized.

Regards,
Neil Goundar.


Ads