Custom Toolbar is missing on inspector window while composing mai

C

CoolSanil

Hi all
I am developing com addin for outlook 2k3 and 2k7 using ATL/COM . I have
written inspector wrapper class which will wrap inspectors in NewInspector
event. In wrapper class i add new toolbar on inspector window. When i open
any email for reading i can see toolbar properly added. But when i try to
compose mail my toolbar is missing (only image of the button is present and
all other parameters eg. caption, tooltip are gone). After playing with
outlook i came to know outlook uses word as editor for composing mail, when i
change it to default email editor of the outlook (other than word) i can see
toolbar properly added. So my problem is toolbar is missing when email editor
is word, what should i do to see toolbar using any editor(word / defauld
outlook)
Any help will be appriciated.
 
K

Ken Slovak - [MVP - Outlook]

With WordMail do you get any errors when you actually create that toolbar?
Is it created but not visible or enabled?

If it's just not enabled/visible you will need to handle the Word event for
WindowActivate in your code. In that event if wn.EnvelopeVisible == true
it's a WordMail window, if == false it's a Word.Document window. You then
have to iterate the collection of Word CommandBars and find yours and set
visibility and enabled state as desired.

The same thing applies if it's a Document, if you don't want your UI shown
there you will need to disable it and/or make it invisible.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top