View Single Post
  #7  
Old May 19th 09, 04:43 AM posted to microsoft.public.outlook.program_addins
ryotyankou via OfficeKB.com
external usenet poster
 
Posts: 101
Default About state of encrypt and sign button for outlook?

It is really strange. And i check my situation again and again, it is just as
what i said.
1. outlook editor, you must open a inspector and close it, then
CommandBarButton::get_state will work. If you don't do close action,
get_state alway return Office::msoButtonUp.
2. word editor, it is ok.

my code is quite disordered, following code is just the flow:
1. OnConnection DispEventAdvise(NewInspector)
2. NewInspectorEvent Create a wrapper class and add to list.
3. In Wrapper class DispEventAdvise(InspectorActive event and Close
event)
3. InspectorActive event check if the toolbar not create yet,
CreateToolbar
4. CreateToolbar Find outlook's encrypt and sign button(here i
can get CommandBarButton
object), then get_State. Then Add new
button, set its state by checking
outlook button's state.
5. If use close inspector remove current inspector from list.
6. If use close outlook DisConnection actions.
That's all.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...ddins/200905/1

Ads