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
|