View Single Post
  #5  
Old July 20th 08, 01:02 PM posted to microsoft.public.outlook.program_addins
Steffen Grellmann[_2_]
external usenet poster
 
Posts: 9
Default AddHandler to a button on a new inspectors commandbar

Hi Ken,

in the meantime I've taken a closer look at the Inspector Wrapper
example from your website and adapted it for using in VSTO 2005 in
conjunction with OL 2003. So I've got rid of the multiple clicks. As
you may remember I'm trying to add a button to a WordMail commandbar.
This is working fine so far with one exception: If multiple drafts of
a new mail are opened, the button is added multiple times.

I thought I could fix this behaviour with a closer look at the
CreateButtons and CreateMenus procedures in your Inspector Wrapper
code, but I'm a bit confused about setting m_obj = Nothing if WordMail
is true. What has been your initial idea when checking for WordMail?

Beside that, I'm not clear about the UnInitHandler in objInsp_Close
because I can't find an UnInitHandler Sub or Function in your code.
What should this UnInitHandler do?

Kind regards,

Steffen
Ads