Encrypt and sign button while word is editor for outlook?

Status
Not open for further replies.
R

ryotyankou

Thanks to , 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.

 
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?


 
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::DispEventAdvise,

return E_NOINTERFACE. Why?

Office::_CommandBarButton is derived from IAccessible and can be advised, why

my returned IAccessiblePtr couldn't be advised?? TIA.


 
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.


 
If no one responds that means no one has the answer for you. Your posts did

not offend anyone that I'm aware of.

"ryotyankou " <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.

> >
>
>
 
OK, i got it, thank you Ken. :)
- 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.


 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
R State of encrypt and sign button for a saved mail?(draft) Outlook VBA and Custom Forms 3
R About state of encrypt and sign button for outlook? Outlook VBA and Custom Forms 7
Dr. Demento Programmatically encrypt email (2010) Using Outlook 10
U unable to encrypt email Using Outlook 9
E Save Selected Email Message as .msg File - digitally sign email doesn't works Outlook VBA and Custom Forms 1
L I Cannot Sign Into My Outlook Account? Outlook VBA and Custom Forms 0
M How create a Rule to filter sender's email with more that one @ sign Using Outlook 1
D.Moore VB script to Digitaly Sign newly created outlook message Outlook VBA and Custom Forms 2
Fozzie Bear Office 365 Sign Up Using Outlook 1
A Creating a sign up form in Outlook 2010 Using Outlook 1
B Outlook 2003 can't sign in to my Hotmail account Using Outlook.com accounts in Outlook 1
M Can't Sign in to Outlook Using Outlook.com accounts in Outlook 4
G Add Map It button to Custom Contacts Form in Outlook Outlook VBA and Custom Forms 1
J Outlook 2021 ScanPST errors (yet again ... sorry): repair button missing Outlook 2021 Using Outlook 5
S Outlook 2002- "Send" button has disappeared. Help please. Using Outlook 1
TomHuckstep Remove Send/Receive All Folders (IMAP/POP) button from Outlook 365 Ribbon Using Outlook 2
Witzker How to get the button Karte ( map) in custom contact form Outlook VBA and Custom Forms 2
J Want to create a button on the nav bar (module add-in) to run code Outlook VBA and Custom Forms 2
B How to create a button that sorts and selects the most recent message with ONE click Using Outlook 2
jehan2256 "History" button in Business Contact Manager Using Outlook 1
L "Insert Pictures" Button-Wrong Folder Using Outlook 5
O Replace hard returns with soft returns on selected text and button to QAT Using Outlook 5
bdsermons Outlook 365 command button in outlook form Outlook VBA and Custom Forms 5
J "Contact" button in Journal entry Using Outlook 1
O Outlook 2010 Add delete button to the side of the message list Using Outlook 1
I Button PDF in Outlook Contact custom form Outlook VBA and Custom Forms 1
D Outlook 2013 Macros only run in VB editor, not in drop down or button Outlook VBA and Custom Forms 14
N contact list seen in Contact folder but knot in Address book or when 'TO' button is clicked in new email Using Outlook 0
Witzker HowTo start a macro with an Button in OL contact form Outlook VBA and Custom Forms 12
R Follow up button doesn't working neither the reminders in BCM BCM (Business Contact Manager) 0
Eike Move mails via macro triggered by the click of a button? Outlook VBA and Custom Forms 0
K Disabling import/export button to restrict PST creation Using Outlook 3
N Which Button Was Clicked on the Ribbonbar Menu Outlook VBA and Custom Forms 2
E Can't accept or decline task (no button appears) Using Outlook 2
M VbScript for Command Button on Contacts Custom Form Using Outlook 1
Q Prompt button to auto turn on Out of Office Outlook VBA and Custom Forms 3
C iCloud Setting missing Outlook tab and Outlook missing the iCloud refresh button Using Outlook 4
Witzker Outlook 2010 Insert Date & Time at the button of an OL contactform in red Using Outlook 2
S How to set up button in ribbon for individual Quick Steps Using Outlook 1
C Custom Outlook Form - Populate Information from Radio Button / Check Box Using Outlook 0
J Command Button to stamp a date and time in a textbox in Outlook 2016 Outlook VBA and Custom Forms 3
A ScanPST finding errors but no Repair button Using Outlook 2
N Creating a button or link to a form in the Organizational Forms Library Outlook VBA and Custom Forms 3
J Execute Add-In Button from VBA Outlook 2016 Outlook VBA and Custom Forms 1
D Command Button code will not execute. Any suggestions Please. Outlook VBA and Custom Forms 2
S Reminder Dialog Open Button Using Outlook 2
Wayne Dardis Calling Ribbon Button in Outlook 2016 Outlook VBA and Custom Forms 6
Tanja Östrand Outlook 2016 - Create Macro button to add text in Subject Outlook VBA and Custom Forms 1
R Categorize Button in Quick Access Toolbar Disappears on New Email Using Outlook 1
S Problem running Command button code Outlook VBA and Custom Forms 2

Similar threads

Back
Top