View Single Post
  #10  
Old January 30th 08, 08:07 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Inspector Wrapper

Well, what I do is use a unique string, maybe something like
"myWordMailToolbar". Then I append the Key value of my Inspector wrapper. So
wrapper class with Key = 1 has a Tag value of "myWordMailToolbar1". In
WindowActivate I get the Key value and check for all command bars with the
string "myWordMailToolbar" in their Tag values if the toolbar is BuiltIn =
false. Any that match are my user created toolbars.

Then I match the full Tag value to see which bar belongs to the active
Inspector and enable and make visible that one. Any others with the partial
Tag but a different Key value at the end get disabled and made invisible.

Your mileage may vary.

--
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
...
Thanks Ken.
I will use redemption to avoid this. I added the code to disable and make
invisible those toolbars from prevously opened inspectors but now they are
disableb not only onthe current inspectors but in all others that are
opened
before. I can't match wrapper with current inspector no matter what I try.
Where should I try to match current inspector with unique tag of wrapper
to
be able to see Commandbar1 only in Inspector1 CommandBar2 only in
inspector2
etc?

Sorry about this.

Thanks once again,

Goran


Ads