A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Encrypt and sign button while word is editor for outlook?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 11th 09, 08:42 AM posted to microsoft.public.outlook.program_addins
ryotyankou via OfficeKB.com
external usenet poster
 
Posts: 101
Default Encrypt and sign button while word is editor for outlook?

Thanks to Ken Slovak, my toolbar problem were resolved, Thanks him very much
again.
But now i meet another problem:
While use word as editor, i couldn't find encrypt and sign button at all. My
purpose is to make my created button keep same state as encrypt or sign, when
sign is pressed, my button is down, vice versa. So my thought is catch click
event for the two button, while word is NOT editor, i can find the buttons
and DispEventAdvise on them. Another solution i tried is, Enum all windows,
to find the button's window handle. I use SPY++ get the handle for toolbar
they docked. EnumChildWindow return error code "invalid handle". and i get
the toolbar's parent handle is ok, and the result is What handle i get from
toolbar's parent is the same i saw in SPY++, so i think the buttons may be
drawed by code not real button. So any suggestions or tips or point out my
errors? Thanks in advance.
In a word, i want to keep my buttons' state as the same with outlook's
encrypt or sign button.Thank you again.

--
Message posted via http://www.officekb.com

Ads
  #2  
Old May 11th 09, 02:12 PM posted to microsoft.public.outlook.program_addins
ryotyankou via OfficeKB.com
external usenet poster
 
Posts: 101
Default Encrypt and sign button while word is editor for outlook?

I have another question, following description is assume IsWordEditor ==
false:
when inspector is actived(inspector active event), i can get outlook's
encrypt and sign button state without error code, but it is not correct. Say
i create a new message, change the state of button(push down or up), and save
the message. then open again, in active event find button and getState always
return omsButtonUp, what's going on?

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

  #3  
Old May 12th 09, 10:46 AM posted to microsoft.public.outlook.program_addins
ryotyankou via OfficeKB.com
external usenet poster
 
Posts: 101
Default Encrypt and sign button while word is editor for outlook?

I find a way to get the state of the two button, use
WindowFromAccessibleObject and AccessibleObjectFromWindow, the returned
control(sign and encrypt button of outlook IsWordEditor == true) is a
IAccessiblePtr. Then my purpose changed to monitor the click event of the
buttons. I guess that Office::ICommandBarButtonEvents should be use for
advise event. But when i call ICommandBarButtonEvents:ispEventAdvise,
return E_NOINTERFACE. Why?
Office::_CommandBarButton is derived from IAccessible and can be advised, why
my returned IAccessiblePtr couldn't be advised?? TIA.

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

  #4  
Old May 12th 09, 01:29 PM posted to microsoft.public.outlook.program_addins
ryotyankou via OfficeKB.com
external usenet poster
 
Posts: 101
Default Encrypt and sign button while word is editor for outlook?

Could someone help?

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

  #5  
Old May 13th 09, 02:58 AM posted to microsoft.public.outlook.program_addins
ryotyankou via OfficeKB.com
external usenet poster
 
Posts: 101
Default Encrypt and sign button while word is editor for outlook?

I am sorry for my poor english, am i offend some people unwittingly? That's
not my real intention. Or just have no ideas on this question? This quesiton
is already posted three days, but nobody reply it or just give me some tips.
I am quite confused.

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

  #6  
Old May 13th 09, 02:34 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Encrypt and sign button while word is editor for outlook?

If no one responds that means no one has the answer for you. Your posts did
not offend anyone that I'm aware of.

--
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


"ryotyankou via OfficeKB.com" u48591@uwe wrote in message
news:95fe88c996d65@uwe...
I am sorry for my poor english, am i offend some people unwittingly? That's
not my real intention. Or just have no ideas on this question? This
quesiton
is already posted three days, but nobody reply it or just give me some
tips.
I am quite confused.

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


  #7  
Old May 14th 09, 04:27 AM posted to microsoft.public.outlook.program_addins
ryotyankou via OfficeKB.com
external usenet poster
 
Posts: 101
Default Encrypt and sign button while word is editor for outlook?

OK, i got it, thank you Ken.

Ken Slovak - [MVP - Outlook] wrote:
If no one responds that means no one has the answer for you. Your posts did
not offend anyone that I'm aware of.

I am sorry for my poor english, am i offend some people unwittingly? That's
not my real intention. Or just have no ideas on this question? This
quesiton
is already posted three days, but nobody reply it or just give me some
tips.
I am quite confused.


--
Message posted via http://www.officekb.com

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable sign and encrypt buttons [email protected] Add-ins for Outlook 0 June 20th 07 08:18 PM
"Could not sign or encrypt" message in Outlook 2002 Steve Paulsson Outlook - General Queries 3 February 20th 07 01:13 PM
Sign, encrypt and decrypt in a Citrix session David H. Lipman Outlook - General Queries 0 August 25th 06 12:46 AM
Sign and Encrypt Emails on Custom Form [email protected] Outlook - Using Forms 0 June 26th 06 04:48 PM
Use 3rd Party Editor in Outlook not Word or Built in Editor Charles Outlook - Installation 1 March 28th 06 03:32 PM


All times are GMT +1. The time now is 11:37 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.